Quantcast
Channel: Pandas replace rare values in a pipeline - Code Review Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by htl for Pandas replace rare values in a pipeline

You could use scikit-learn's TransformerMixin which provides an implementation of fit_transform for you (its implementation is available here for interest).I'd consider renaming...

View Article



Pandas replace rare values in a pipeline

A common preprocessing in machine learning consists in replacing rare values in the data by a label stating "rare". So that subsequent learning algorithms will not try to generalize a value with few...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images