Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transforms original labels into the range [0, nb_labels-1] when preprocessing data ,but where is '0'? #4

Open
guoyang007 opened this issue Mar 6, 2017 · 1 comment

Comments

@guoyang007
Copy link

the function 'adjust_idx_labels' try to Transforms original labels into the range [0, nb_labels-1], in the file preprocess_data.py, but why to [0,nb_labels-1],not [1,nb_labels]? and now where is the class 0?
I'm now using the dataset to do sth ion the Torch,and there may be an error where 'Assertion t >= 0 && t < n_classes failed'.

So I'm confused about the transform ,looking forward to your answer~

@hsm207
Copy link

hsm207 commented Jun 3, 2018

I think it's [0, nb_labels -1] and not [1, nb_labels] because of the convention of starting to count from 0.

As for where is class 0, class 0 is still in the data. Based on the label_legend.txt file, it looks like class 0 corresponds to the null class i.e. no event of interest. So, we don't need to adjust this since by convention, we label the class that we are not interested in as 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants