Skip to content

Commit

Permalink
[ML] Corrects categorization message level (#55573)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored Jan 22, 2020
1 parent 14269fa commit cc2f58a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions x-pack/legacy/plugins/ml/common/types/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export enum VALIDATION_RESULT {
TOKEN_COUNT,
MEDIAN_LINE_LENGTH,
NULL_VALUES,
NO_EXAMPLES,
TOO_MANY_TOKENS,
FAILED_TO_TOKENIZE,
INSUFFICIENT_PRIVILEGES,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ export class ValidationResults {

public createNoExamplesResult() {
this._results.push({
id: VALIDATION_RESULT.NULL_VALUES,
valid: CATEGORY_EXAMPLES_VALIDATION_STATUS.PARTIALLY_VALID,
id: VALIDATION_RESULT.NO_EXAMPLES,
valid: CATEGORY_EXAMPLES_VALIDATION_STATUS.INVALID,
message: i18n.translate('xpack.ml.models.jobService.categorization.messages.noDataFound', {
defaultMessage:
'No examples for this field could be found. Please ensure the selected date range contains data.',
Expand Down

0 comments on commit cc2f58a

Please sign in to comment.