Skip to content

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

@guoyang007

Description

@guoyang007

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~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions