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

Add better error message if all features are dropped from dataset #1867

Merged
merged 8 commits into from
Jan 6, 2023

Conversation

tongyu-microsoft
Copy link
Contributor

This PR adds better error message if all features are dropped.
(responsibleai.exceptions.UserConfigValidationException: There is no feature in the dataset, or all features have been dropped from the dataset )

Description

We added dropped_features where users can choose to drop certain features from the model. In the case when user drops all features from the dataset, we need to have detailed error message "There is no feature in the dataset, or all features have been dropped from the dataset"

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.

@codecov-commenter
Copy link

codecov-commenter commented Dec 28, 2022

Codecov Report

Merging #1867 (2d46ca0) into main (2607f35) will increase coverage by 13.42%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main    #1867       +/-   ##
===========================================
+ Coverage   79.00%   92.43%   +13.42%     
===========================================
  Files          19      103       +84     
  Lines        1324     4823     +3499     
===========================================
+ Hits         1046     4458     +3412     
- Misses        278      365       +87     
Flag Coverage Δ
unittests 92.43% <100.00%> (+13.42%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...sibleai/responsibleai/rai_insights/rai_insights.py 93.66% <100.00%> (ø)
raiwidgets/raiwidgets/constants.py
raiwidgets/raiwidgets/cohort.py
raiwidgets/raiwidgets/__version__.py
raiwidgets/raiwidgets/error_handling.py
raiwidgets/raiwidgets/model_analysis_dashboard.py
raiwidgets/raiwidgets/explanation_constants.py
raiwidgets/raiwidgets/error_analysis_dashboard.py
raiwidgets/raiwidgets/__init__.py
raiwidgets/raiwidgets/explanation_dashboard.py
... and 113 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

2 similar comments
1 similar comment
@tongyu-microsoft tongyu-microsoft merged commit 9a46b6a into main Jan 6, 2023
@tongyu-microsoft tongyu-microsoft deleted the tongy/betterErrorMsg branch January 6, 2023 05:08
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.

3 participants