Re:Ask HN: In 2022, what is the proper way to get into machi...
by liquorice on Tuesday August 16, 2022 @07:49AM
(#32481604)
They are probably not silly mistakes. Label encoding can be very useful for tree based models when the categories are ordinal, or when there are a high amount of categories.
[ Parent
| on HN ]
Re:Ask HN: In 2022, what is the proper way to get into machi...
by alanfranz on Tuesday August 16, 2022 @10:42AM
(#32483395)
They are most of the times. You get a prediction with a meaningless float (unless the categories are ordinal, which isn’t so common), and categories can change their assigned number (happens in lots of analyses) at every run since they’re not properly sorted. Crawl a few notebooks, I spotted that error quite often.