I\'m new to scikit-learn. I\'m trying use preprocessing. OneHotEncoder to encode my training and test data. After encoding I tried to train Random forest classifier using that d
sklearn random forests do not work on sparse input and your dataset shape is to large and too sparse for a dense version to fit in memory.
You probably have some categorical features with a much to large cardinality (for instance a free text field or unique entry ids). Try to drop those features and start over.