Typo in order example

In the first notebook " Encoding of categorical variables" after code cell 12 the first example is correct:

However, be careful when applying this encoding strategy: using this integer representation leads downstream predictive models to assume that the values are ordered (0 < 1 < 2 < 3… for instance).

Then later after code cell 18 in the example > is used instead of <:

Indeed, using an OrdinaleEncoder will output ordinal categories. It means that there is an order in the resulting categories (e.g. 0 > 1 > 2 ).

Thanks. Solved in FIX typo · INRIA/scikit-learn-mooc@e1ec9db · GitHub

This has been done, if you want to see the change in the FUN notebook you need to reset your notebook as described in How to go back to original version of a notebook? - #2

1 Like