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

Fix robot page exception on feature importance when dropped_feature is defined #2051

Merged
merged 2 commits into from
May 4, 2023

Conversation

tongyu-microsoft
Copy link
Contributor

@tongyu-microsoft tongyu-microsoft commented May 3, 2023

This PR fixes the bug where the index for x axis and y axisfor feature importances plot was not correctly set when dropped_feature has length > 0.

Description

There are two issues:

  1. y axis: Feature importances are only calculated for non-dropped features. So we should pass featureIndex instead of featureIndexBeforeDrop to yKey (change on line 602)
  2. x axis: this.handleFeatureSelection is a shared method for both and FeatureOptions' . We should pass indexAfterDrop to this.handleFeatureSelection method.
    feautureImportanceRobotPage

Checklist

  • I have added screenshots above for all UI changes.
  • I have added e2e tests for all UI changes.
  • Documentation was updated if it was needed.

@tongyu-microsoft tongyu-microsoft merged commit d6b0d10 into main May 4, 2023
@tongyu-microsoft tongyu-microsoft deleted the tongy/fixFeatureImportanceError branch May 4, 2023 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants