Skip to content

DOC Change number of classes in lfw_pair documentation#16761

Merged
NicolasHug merged 2 commits intoscikit-learn:masterfrom
lucgiffon:lucgiffon-class-n-lfw-pairs
Mar 25, 2020
Merged

DOC Change number of classes in lfw_pair documentation#16761
NicolasHug merged 2 commits intoscikit-learn:masterfrom
lucgiffon:lucgiffon-class-n-lfw-pairs

Conversation

@lucgiffon
Copy link
Copy Markdown
Contributor

Previous number of 5749 was actually the size of the set from which the pair of face labels were sampled. It was misleading because the task isn't to predict the label of the pair but wether or not the two faces belong to the same person, hence a binary classification task.

Reference Issues/PRs

Fix #16757

Previous number of 5749 was actually the size of the set from which the pair of face labels were sampled. It was misleading because the task isn't to predict the label of the pair but wether or not the two faces belong to the same person, hence a binary classification task.
@TomDLT
Copy link
Copy Markdown
Member

TomDLT commented Mar 25, 2020

This dataset is clearly for binary classification, but could it also be used for multiclass classification ?
If so, maybe we can write 2 or 5749?

@lucgiffon
Copy link
Copy Markdown
Contributor Author

I don't think so, there is a separate dataset called "lfw_people" that has 5749 classes. I think we can only do binary classifcation with lfw_pairs

https://scikit-learn.org/stable/modules/generated/sklearn.datasets.fetch_lfw_people.html

Copy link
Copy Markdown
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds fair.
Also the target array is only ones and zeros

Thanks @lucgiffon

@NicolasHug NicolasHug changed the title Change number of classes in lfw_pair documentation DOC Change number of classes in lfw_pair documentation Mar 25, 2020
@NicolasHug NicolasHug merged commit 4bb4856 into scikit-learn:master Mar 25, 2020
gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misleading documentation in lfw_pairs

3 participants