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
Add multi-label support #13
Comments
Hi, is this implemented? I am having issues with the Multilabel Case. The Transformation with MultiLabelBinarizer leads to the error: ValueError: FastTextClassifier methods must get a one-dimensional numpy array as the y parameter. What can I do? Thank you very much. |
Or do you have any other recommendation how to Cross Validate the Results of fastText supervised training (MultiLabel)? I am looking for a solution for weeks now... Any help is very much appreciated. Kind Regards, |
Hey Eva! I'll try to help you as best as I can. However, I don't have the time to implement it right now. I can guide you through contributing the code yourself. :) First, as the issue is open, it shouldn't come as a surprise that this isn't implemented. As as you can see in this example file from the FastText tutorial for text classification, this is the format for multilabel problems:
So, very much like the multiclass format, just with multiple Two main areas of code in
y: array-like of shape (n_samples,) or (n_samples, n_outputs)
|
Hi Shaypal, thanks a lot for replying! I already got the correct format in my data. But unfortunately I dont think I am able to implement the feature by myself. Do you by any chance have some experience perfoming a cross validation on the outcome of fasttext supervised training? Because that is the reason I was looking into this wrapper class. I couldnt find a lot of up to date information regarding validation of fasttext. Cheers |
Add support to providing multi-label labels in a scikit-learn-compliant format, utilizing (under the hood) fasttext's support for multi-label scenarios.
The text was updated successfully, but these errors were encountered: