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

make the library label agnostic #252

Open
arthurPignet opened this issue Oct 1, 2020 · 2 comments
Open

make the library label agnostic #252

arthurPignet opened this issue Oct 1, 2020 · 2 comments
Labels
enhancement New feature or request nice_to_have

Comments

@arthurPignet
Copy link
Collaborator

arthurPignet commented Oct 1, 2020

Currently most of the functions work with the assumptions that the labels are one-hot-encoded vectors.

Besides the fact that it is not responsive, sometime we need to play with label index. (first label is indexed 1, second label 2, and so on)
A solution can be to add (automatically) at the dataset generation a dict of label, where the keys would be integer and the values would be the vectors for instance.

An instance with MNIST :

dataset.dic_label = { 0: [1,0,0,0,0,0,0,0,0,0],
1 : [0,1,0,0,0,0,0,0,0,0],
2 : [0,0,1,0,0,0,0,0,0,0],
3 : [0,0,0,1,0,0,0,0,0,0],
4 : [0,0,0,0,1,0,0,0,0,0],
5 : [0,0,0,0,0,1,0,0,0,0],
6 : [0,0,0,0,0,0,1,0,0,0],
7 : [0,0,0,0,0,0,0,1,0,0],
8 : [0,0,0,0,0,0,0,0,1,0],
9 : [0,0,0,0,0,0,0,0,0,1]}

@bowni bowni added enhancement New feature or request nice_to_have labels Nov 5, 2020
@bowni
Copy link
Member

bowni commented Nov 5, 2020

Is this still relevant @arthurPignet ?

@arthurPignet
Copy link
Collaborator Author

Yes it is. The split of the data between partners is label agnostic, but it is not he case of the shuffling/corruption
Basically, the only type of labels accepted is one-hot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request nice_to_have
Projects
None yet
Development

No branches or pull requests

2 participants