Skip to content

Perhaps show how to understand what class has what score #3672

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

Closed
PeterPann23 opened this issue May 7, 2019 — with docs.microsoft.com · 0 comments · Fixed by #3724
Closed

Perhaps show how to understand what class has what score #3672

PeterPann23 opened this issue May 7, 2019 — with docs.microsoft.com · 0 comments · Fixed by #3724
Assignees
Labels
documentation Related to documentation of ML.NET

Comments

Copy link

One gets an set of scores only no documented way to map the value to class.

Perhaps add some samples like:
var predEngine = mlContext.Model.CreatePredictionEngine<IrisData, IrisPrediction>(trainedModel);
VBuffer<float> keys = default;
predEngine.OutputSchema["PredictedLabel"].GetKeyValues(ref keys);
var labelsArray = keys.DenseValues().ToArray();
for (var i = 0; i < keys.Length; i++)
Console.WriteLine($"key {labelsArray[i]} = {metrics.PerClassLogLoss[i]:P4}");


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@najeeb-kazmi najeeb-kazmi added the documentation Related to documentation of ML.NET label May 9, 2019
@shmoradims shmoradims self-assigned this May 13, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Related to documentation of ML.NET
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants