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

PermutationFeatureImportance example with multiclassification #12407

Closed
drake7707 opened this issue May 17, 2019 — with docs.microsoft.com · 4 comments
Closed

PermutationFeatureImportance example with multiclassification #12407

drake7707 opened this issue May 17, 2019 — with docs.microsoft.com · 4 comments
Assignees
Labels
dotnet-ml/svc support-request Support-style question;customer needs help solving a problem [org][type][category]

Comments

Copy link

The PFI extension also exists in the MultiClassClassification catalog but returns objects of MulticlassClassificationMetricsStatistics that do not have a RSquared property. As someone not intimately familiar with the ML terminology it is unclear to me which of the properties I should use (MacroAccuracy, MicroAccuracy, LogLoss, LogLossReduction, TopKAccuracy) to rank the features like in the example above.


Document Details

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

@luisquintanilla
Copy link
Contributor

luisquintanilla commented May 17, 2019

Hi @drake7707 . That is correct. PFI is available for various machine learning tasks in ML.NET. The reason R-Squared is not available for multiclass classification is different machine learning tasks have different metrics. See this article on metrics for more details.

https://docs.microsoft.com/en-us/dotnet/machine-learning/resources/metrics

@luisquintanilla luisquintanilla self-assigned this May 17, 2019
@drake7707
Copy link
Author

@luisquintanilla Thanks, I completely missed that page.

Can I interpret the MacroAccuracy,MicroAccuracy and LogLoss in the same way as RSquared, are they also average decreases per feature? If so, am I correct that I should just replace the RSquared.Mean from the example with LogLoss.Mean to rank the feature importance correctly?

@luisquintanilla
Copy link
Contributor

@drake7707 That is correct. See sample from API documentation

@drake7707
Copy link
Author

I wasn't aware there were examples documented in the API documentation. My search-fu failed me, thanks a lot!

@BillWagner BillWagner added support-request Support-style question;customer needs help solving a problem [org][type][category] and removed ⌚ Not Triaged Not triaged labels Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-ml/svc support-request Support-style question;customer needs help solving a problem [org][type][category]
Projects
None yet
Development

No branches or pull requests

4 participants