Encode Categorical Data Using Frequency

Encode Categorical Data Using Frequency

Sometimes, count or frequency can be useful features for your model. If you want to replace categories by the frequency of observations per category, use feature_engine’s CountFrequencyEncoder.

In the code above I encode color and clarity.

Link to feature-engine.

Search

Related Posts

Related Posts

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran