topcan5
topcan5

Reputation: 1707

How to get value mapping from sklearn Leave One Out encoder?

I am using the LeaveOneOutEncoder from category_encoders. I am able to encode my data.

How to get a map of the original value and looe_value pair?

Original:

city salary
san jose 120
san jose 100
austin 95

Encoded:

city salary
110 120
110 100
95 95

I want to have a map of city_sanjose = 110; city_austin = 95. How to create this map? Do I have to do it manually?

Upvotes: 0

Views: 52

Answers (0)

Related Questions