Skip to content

Commit

Permalink
[8.6] [ML] Fix typo and upper confidence bound field (#145526) (#145546)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.6`:
- [[ML] Fix typo and upper confidence bound field
(#145526)](#145526)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Valeriy
Khakhutskyy","email":"1292899+valeriy42@users.noreply.github.com"},"sourceCommit":{"committedDate":"2022-11-17T11:48:36Z","message":"[ML]
Fix typo and upper confidence bound field (#145526)\n\nThis PR fixes
minor typos and assigns the correct value to the upper\r\nconfidence
bound.\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a00f1300eb364f3dd8d51778aadc7b156956a2d8","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["non-issue",":ml","Feature:Anomaly
Detection","release_note:skip","v8.6.0","v8.7.0"],"number":145526,"url":"https://github.com/elastic/kibana/pull/145526","mergeCommit":{"message":"[ML]
Fix typo and upper confidence bound field (#145526)\n\nThis PR fixes
minor typos and assigns the correct value to the upper\r\nconfidence
bound.\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a00f1300eb364f3dd8d51778aadc7b156956a2d8"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145526","number":145526,"mergeCommit":{"message":"[ML]
Fix typo and upper confidence bound field (#145526)\n\nThis PR fixes
minor typos and assigns the correct value to the upper\r\nconfidence
bound.\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"a00f1300eb364f3dd8d51778aadc7b156956a2d8"}}]}]
BACKPORT-->

Co-authored-by: Valeriy Khakhutskyy <1292899+valeriy42@users.noreply.github.com>
  • Loading branch information
kibanamachine and valeriy42 authored Nov 17, 2022
1 parent 4aa7678 commit fa977c9
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,19 @@ export const DetailsItems: FC<{
) {
items.push({
title: i18n.translate('xpack.ml.anomaliesTable.anomalyDetails.upperBoundsTitle', {
defaultMessage: 'Upper bounds',
defaultMessage: 'Upper bound',
}),
description: formatValue(anomaly.typical, source.function, undefined, source),
description: formatValue(
anomaly.source.anomaly_score_explanation?.upper_confidence_bound,
source.function,
undefined,
source
),
});

items.push({
title: i18n.translate('xpack.ml.anomaliesTable.anomalyDetails.lowerBoundsTitle', {
defaultMessage: 'Lower bounds',
defaultMessage: 'Lower bound',
}),
description: formatValue(
anomaly.source.anomaly_score_explanation?.lower_confidence_bound,
Expand Down

0 comments on commit fa977c9

Please sign in to comment.