LabelEncoder for categorical features?
TL;DR: Using a LabelEncoder to encode ordinal any kind of features is a bad idea! This is in fact clearly stated in the docs, where it is mentioned that as its name suggests this encoding method is aimed at encoding the label: This transformer should be used to encode target values, i.e. y, and not … Read more