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 error analysis showing float values with many zeros for some classification task nodes #1991

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

imatiach-msft
Copy link
Contributor

Description

I noticed in several customer meetings that sometimes the nodes in error analysis would have values with many zeros. I was actually able to reproduce this locally for one of our notebooks (census classification scenario). It seems this occurs only for classification tasks, as we don't use precision in front-end then, and we cast the error variable passed from backend to frontend cast as float. The fix is to conditionally cast the error variable to frontend or backend depending on whether a regression metric was used.

Before fix:

image

After fix:

image

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.

Copy link
Contributor

@gaugup gaugup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test for regression as well?

@imatiach-msft
Copy link
Contributor Author

Can you add a test for regression as well?

The validation code is for both regression and classification tasks

@imatiach-msft imatiach-msft force-pushed the ilmat/fix-error-float branch from 797ff36 to a5a6950 Compare March 2, 2023 21:21
@imatiach-msft imatiach-msft merged commit f675122 into main Mar 3, 2023
@imatiach-msft imatiach-msft deleted the ilmat/fix-error-float branch March 3, 2023 16:45
@imatiach-msft imatiach-msft mentioned this pull request Mar 10, 2023
3 tasks
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.

4 participants