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] Fix values for decision path not showing correctly for regression due to rounding #80448 #80555

Conversation

qn895
Copy link
Member

@qn895 qn895 commented Oct 14, 2020

Summary

Duplicate of #80448. This PR fixes a formatting issue which will rounds large numbers (e.g. 1323423 to 1320000). It now uses formatSingleValue to show up to 3 significant figures for small numbers, and to round up to first decimal for large numbers.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@qn895 qn895 added the Feature:Data Frame Analytics ML data frame analytics features label Oct 14, 2020
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

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 ⚡

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id before after diff
ml 11.3MB 11.3MB +5.9KB

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@qn895 qn895 merged commit 808293a into elastic:master Oct 14, 2020
@qn895 qn895 deleted the ml-fix-formatting-decision-path-incorrect-for-large-num branch October 14, 2020 18:16
qn895 added a commit to qn895/kibana that referenced this pull request Oct 14, 2020
qn895 added a commit to qn895/kibana that referenced this pull request Oct 14, 2020
qn895 added a commit that referenced this pull request Oct 14, 2020
qn895 added a commit that referenced this pull request Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants