-
Notifications
You must be signed in to change notification settings - Fork 6k
Multi Label Classifier sample #5385
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
Comments
@asthana86 @aditidugar please take a look at this request for a new tutorial for ML.NET. |
Thanks for the feedback, @ronbutan! We're still working on building out all of our tutorials and samples, but a multi-classification sample will be added soon. |
The Iris example on the getting started page is a multiclass classifier: https://www.microsoft.com/net/learn/apps/machine-learning-and-ai/ml-dotnet/get-started |
Maybe we should add that link to this page then: https://docs.microsoft.com/en-us/dotnet/machine-learning/tutorials/? |
Yes, @brendankowitz is right, that's a multi-classification sample. @mairaw, we can certainly link from there temporarily, but it's not really a step-by-step tutorial like our other walkthroughs. We're working on creating a more end-to-end multi classification sample based on some of the demos we showed, and will have that ready soon. |
Appreciate the speedy response. I was wondering how to construct the class (i.e. IrisData) with multi labels (e.g. public string Label vs public string[] Labels). A simple code sample will definitely help. |
Hey @ronbutan! Thanks for the clarification here, I think we may have misunderstood your earlier question. Here is some guidance that may help:
Hope this helps! |
Hi The sample with flowers looks and works awesome. I am impressed. Could you please avice me what kind of classifier should I use if one (or more) of my input features contains descreet values like color of the flower? Thanks |
Hi @Finansnet! If I understand your question correctly, you're looking to handle input features for the color of flower such as "yellow", "pink", "blue", etc. You can use the CategoricalOneHotVectorizer() function to transform these into numeric values so you can then process them in your learning algorithm. Please take a look at the Taxi Fare example to see how this can be implemented. |
Hi @aditidugar That was exactly I was looking for. I have checked in on my training data and the results are very promising. Thank you. Marek |
@aditidugar Any update on Multi-label classification support please? |
@stephenstroud - on the way soon! In the meantime, check out the sample here: https://github.com/dotnet/machinelearning-samples/tree/master/samples/csharp/end-to-end-apps/MulticlassClassification-GitHubLabeler |
Hi Alexander, sorry to bother but I've been looking for multi-label support/doc and can't find it anywhere. It is currently supported by ml.net? |
Any update on this? |
@JRAlexander what's the update on multi-label classification? It's been over a year now since the 'on the way soon' comment. Only examples are multi-class algorithms which produce only a single label. We much need a solution for this – including scoring that accounts for the multi-label aspect of things (ie: whether the algorithm correctly labelled with the right number of tags) |
Hi @marchy, ML.NET currently does not have native support for multi-label classification. You could raise an issue over on the product GitHub repo if you like - it's also open source: https://github.com/dotnet/machinelearning. Your other option would be to use a pre-trained TensorFlow or ONNX model that already provided this functionality. You can see an example of how to load a pre-trained model here: https://docs.microsoft.com/en-us/dotnet/machine-learning/tutorials/text-classification-tf |
@JRAlexander @natke Since the last comment on this question was over a year ago, is there an update on whether ML.NET supports multi-label classification? I'm currently pulling in my pre-trained TensorFlow model, but it would be nice to have everything under one roof. |
Pinging @briacht to see if she can provide an update |
Hey is there way I can achieve hierarchical classification in ml.net? |
Does ML.Net support multi-label classification? |
I look forward to a sample illustrating Multiclass Classification model. Common example will be News categorization.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: