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

[ML] Fixing overflowing metric values in field cards #29255

Conversation

jgowdyelastic
Copy link
Member

@jgowdyelastic jgowdyelastic commented Jan 24, 2019

Round min, max and median values to 2dp to fix occasional overflow.

Before:
image

After:
image

For very small numbers which would normally round to 0, a new function converts them to index notation.
e.g. -0.000000234 is converted to -2.34e-7

image

Adds a new formatter function to do the rounding along with some tests.

Fixes #28567

@jgowdyelastic jgowdyelastic added bug Fixes for quality problems that affect the customer experience v7.0.0 :ml v6.7.0 labels Jan 24, 2019
@jgowdyelastic jgowdyelastic self-assigned this Jan 24, 2019
Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

LGTM, just added a comment on a possible helper function.

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

LGTM ⚡️

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Contributor

💔 Build Failed

@jgowdyelastic
Copy link
Member Author

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@jgowdyelastic
Copy link
Member Author

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@jgowdyelastic
Copy link
Member Author

retest

@jgowdyelastic jgowdyelastic force-pushed the rounding-field-stats-to-fix-overflow branch from 4e566bf to d680de1 Compare January 24, 2019 20:12
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@jgowdyelastic jgowdyelastic merged commit 18415fd into elastic:master Jan 24, 2019
jgowdyelastic added a commit to jgowdyelastic/kibana that referenced this pull request Jan 24, 2019
* [ML] Fixing overflowing metric values in field cards

* adding better rounding for tiny numbers

* removing debug line
jgowdyelastic added a commit that referenced this pull request Jan 24, 2019
* [ML] Fixing overflowing metric values in field cards

* adding better rounding for tiny numbers

* removing debug line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience :ml v6.7.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Metric values in the file data visualizer can overflow
5 participants