[Tutor] Explanation of one - hot encoding
Tariq Khasiri
tariqkhasiri at gmail.com
Sat Nov 27 11:41:30 EST 2021
so grateful to everyone who has been kind enough to give their valuable
feedback. now i have a better grip over the whole thing - thanks to all of
you !
On Sat, Nov 27, 2021 at 6:29 PM Alan Gauld via Tutor <tutor at python.org>
wrote:
> 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
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list