Skip to content

Commit

Permalink
[ML] Adjust thresholds used in multi bucket impact unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peteharverson committed Oct 18, 2018
1 parent e045bc2 commit bc95ab7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions x-pack/plugins/ml/common/util/__tests__/anomaly_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,19 +284,19 @@ describe('ML - anomaly utils', () => {

describe('getMultiBucketImpactLabel', () => {

it('returns high for 4 <= score <= 5', () => {
expect(getMultiBucketImpactLabel(4)).to.be('high');
it('returns high for 3 <= score <= 5', () => {
expect(getMultiBucketImpactLabel(3)).to.be('high');
expect(getMultiBucketImpactLabel(5)).to.be('high');
});

it('returns medium for 3 <= score < 4', () => {
expect(getMultiBucketImpactLabel(3)).to.be('medium');
expect(getMultiBucketImpactLabel(3.99)).to.be('medium');
it('returns medium for 2 <= score < 3', () => {
expect(getMultiBucketImpactLabel(2)).to.be('medium');
expect(getMultiBucketImpactLabel(2.99)).to.be('medium');
});

it('returns low for 1 <= score < 3', () => {
it('returns low for 1 <= score < 2', () => {
expect(getMultiBucketImpactLabel(1)).to.be('low');
expect(getMultiBucketImpactLabel(2.99)).to.be('low');
expect(getMultiBucketImpactLabel(1.99)).to.be('low');
});

it('returns none for -5 <= score < 1', () => {
Expand Down

0 comments on commit bc95ab7

Please sign in to comment.