Skip to content

Commit

Permalink
[ML] Fix typo and upper confidence bound field (elastic#145526)
Browse files Browse the repository at this point in the history
This PR fixes minor typos and assigns the correct value to the upper
confidence bound.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
valeriy42 and kibanamachine authored Nov 17, 2022
1 parent ed14ba0 commit a00f130
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 a00f130

Please sign in to comment.