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

[WIP] Add model selection example with LFW dataset and KNN task #344

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mvargas33
Copy link
Contributor

I created a model selection example for supervised Mahalanobis learners, to show the effectiveness of the linear transformation.

I use a "large" dataset from sklearn: Labeled Faces in the Wild (LFW) people dataset (classification). That it's a bit more complex than using iris, and for the same reason I use PCA to reduce dimentionality.

The usual pipeline would be: PCA-> Classifier, but in this case we try PCA-> Metric learner-> Classifier, and we compare how precision, recall and f1 scores vary to the first scenario that I call a baseline.

To compare models I fixed the last Classifier being a KNeighborsClassifier.

In general, all supervised learners are able to outperform the baseline.

I think this example can be useful to users, because its hard to know beforehand which model will perform the best with our dataset.

Note: The models's parameters are not tuned, this example act as a "final" comparison between models.

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

Successfully merging this pull request may close these issues.

1 participant