scikit-learn-contrib / skope-rules

machine learning with logical rules in Python
http://skope-rules.readthedocs.io
Other
615 stars 95 forks source link

how to work with categorical values data #33

Open Sandy4321 opened 4 years ago

Sandy4321 commented 4 years ago

is it working for with categorical data ? do you have example or maybe categorical values data should be transformed to one hot data and then
data may be considered as continues data?

anilkumarpanda commented 4 years ago

It works with both numerical and categorical variables. Refer this example.

Sandy4321 commented 4 years ago

Great Thanks What is about time series Do you have example code pls

anirarrow commented 4 years ago

To work with categorical data, you need to convert it to ordinal values using "Ordinal Encoding". At least that's what the default example shown in the above link (credit data) works with. I had downloaded the data and found that ordinal encoding was used.