[Tutor] Explanation of one - hot encoding

Alan Gauld alan.gauld at yahoo.co.uk
Sat Nov 27 07:27:41 EST 2021


On 27/11/2021 02:20, Tariq Khasiri wrote:
> This following line is from a kernel I am trying to replicate from Spotify
> songs data. Could anyone kindly explain what this line means ?
> 
> “ In terms of encoding our artists and our genres we see one-hot encoding
> is a bad idea here considering the cardinality of those features therefore
> we will dummy encode the genres and replace the artist names with numerical
> values closer to the model selection stage. ”

This has nothing to do with Python and should really be
addressed to the Spotify community I suspect. I certainly
have no clue what most of it means.

My guess is that one-hot is a typo for one-shot but that
is purely a guess!

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list