-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Label and Score #158
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
Getting the class names for the other scores (not just the top score) is currently available in ML.NET by going through IDV ( @codemzs, @glebuk, @TomFinley, any thoughts on how we can enable getting this type of data in the high-level APIs? |
Is there any available documentation/example on how to use |
@cheesemacfly, just wanted to quickly follow up to see if #239 addresses your question. Take a look at |
@GalOshri it definitely looks like this would address my question. Is there a pre-release version of 0.2 of the nuget package available somewhere so I can test it? |
Yes, the daily NuGet builds are available here. |
@GalOshri it works as expected thanks. Also I'm now wondering, is there a reason why we couldn't get the labels from the |
Just to recap and for future reference, because I've been looking for this, the code that gets the label for the scores is this:
The and the order matches the scores in the model! |
Not sure if it's the best place for this question but how to get the labels back when getting the score? I remember from the build 2018 video that during the demo they used
PredictedLabelColumnOriginalValueConverter
to get the label back instead of the index for thePredictedLabel
but is there a way to apply this converter to all the values in theScore
? If yes, how so?I also remember they were using the
ClassificationMetrics.ConfusionMatrix.ClassNames
to get the labels back from the score but this isn't really doable if you load the output in an app and don't need/want to test your data.I found the file
Terms.txt
in the output zip archive and I can definitely parse it to find the labels but I'm sure there's a better way to do it.The text was updated successfully, but these errors were encountered: