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

Faiss Powered Multi-Label Classification #257

Closed
GeorgePearse opened this issue Oct 6, 2021 · 2 comments
Closed

Faiss Powered Multi-Label Classification #257

GeorgePearse opened this issue Oct 6, 2021 · 2 comments

Comments

@GeorgePearse
Copy link

GeorgePearse commented Oct 6, 2021

Do any of the implementations of KNN within this repo extend to the multi-label case? That is to say, usable in the context of multi-object detection from neural network embeddings or similar.

I was particularly hopeful that KNNE might work? But it's not obvious from the relevant literature.

Thanks a lot.

@Menelau
Copy link
Collaborator

Menelau commented Oct 6, 2021

Hello,

These implementations (Faiss and KNNE) do not support multi-label classification natively. However, it is possible to easily extend them to work in a multi-label classification using scikit-learn meta-estimators which can transform a base classifier into a multi-label estimator (e.g., classifier chains): https://scikit-learn.org/stable/modules/classes.html#module-sklearn.multioutput

I know that KNNE is already compatible with those meta-estimators. For the FaissKNN I just need to add a few lines of code to make it fully compatible with sklearn standards.

@jayahm
Copy link

jayahm commented Jun 9, 2022

Hi @GeorgePearse

Sorry for the interruption.

Did you manage to perform DS on multi-label datasets?

I think the discussion is also related to my question here.

The issue is with y_val needs to be a 1d array, while target values/labels for multi-label datasets are more than 1 dimension.

@Menelau Menelau closed this as completed Feb 27, 2023
This issue was closed.
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

3 participants