Assume that in a machine learning problem, there are several categorical features in dataset.
One common way to handle categorical features is one-hot encoding. However, in this example, authors applied OrdinalEncoder on categorical features before model fitting and getting feature importances.
I would like to ask if sklearn algorithms, in general, treat OrdinalEncoded features as continuous or categorical features.
If sklearn models treat OrdinalEncoded features as continuous features, is it the correct way to handle categorical features?