nicomin
December 12, 2018, 11:33am
1
Hi,
I’ve been trying to create a multi labels classifier from a dataframe and although I tried to look at similar topics on the forum and in the docs, I’ve had no luck for now. I keep having a
IndexError: positional indexers are out-of-bounds
Here is my code:
Any idea how to solve this problem? I feel like it’s very dumb but I just can’t do it.
Thanks!
Nicolas
nicomin
December 12, 2018, 11:33am
2
PS: I work with Pytorch v1 and fastai v1
AbuFadl
(Abu Fadl)
December 12, 2018, 11:43am
3
nicomin
December 12, 2018, 11:48am
4
Oh all right! I saw this topic but I didn’t understand that a list of tags would work. I am going to try that. Thanks for your answer.
sgugger
December 12, 2018, 3:52pm
5
Note that support for one-hot encoded labels was just added in master, so now it should work.
nicomin
December 12, 2018, 4:12pm
6
Great! Behind the scenes, is the training different whether we use a list of tags or a one-hot encoding?
sgugger
December 12, 2018, 4:34pm
7
Nope, it ends up the same.
1 Like