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 validation target column type in the classification scenario #2127

Merged
merged 4 commits into from
Jun 27, 2023

Conversation

hawestra
Copy link
Contributor

Add validation check to ensure that the target column is not continuous (ie of type float) for multiclass classification. This is to address the following bug: Bug 2472415: [Live site bug] raise ValueError("Unknown label type: %r" % y_type) in 0.8.0 which resulted from a sklearn error.
Add unit tests for this scenario

Description

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 Jun 26, 2023

Codecov Report

Merging #2127 (de7138a) into main (4aa5fb0) will increase coverage by 1.19%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2127      +/-   ##
==========================================
+ Coverage   91.02%   92.21%   +1.19%     
==========================================
  Files         115      103      -12     
  Lines        6058     5140     -918     
==========================================
- Hits         5514     4740     -774     
+ Misses        544      400     -144     
Flag Coverage Δ
unittests 92.21% <100.00%> (+1.19%) ⬆️

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 87.67% <100.00%> (+0.06%) ⬆️

... and 12 files with indirect coverage changes

@hawestra hawestra merged commit 234c439 into main Jun 27, 2023
131 checks passed
@hawestra hawestra deleted the hawestra/targetColValidation branch June 27, 2023 20:20
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.

5 participants