Skip to content

Commit

Permalink
[ML] Add unsigned_long support to data frame analytics and anomaly de…
Browse files Browse the repository at this point in the history
…tection (#82636)

* add support for unsigned_long field in dfa

* add support for unsigned_long for anomaly detection
  • Loading branch information
alvarezmelissa87 authored Nov 6, 2020
1 parent e61c76d commit ae20a3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const MAX_COLUMNS = 10;
export const DEFAULT_REGRESSION_COLUMNS = 8;

export const BASIC_NUMERICAL_TYPES = new Set([
ES_FIELD_TYPES.UNSIGNED_LONG,
ES_FIELD_TYPES.LONG,
ES_FIELD_TYPES.INTEGER,
ES_FIELD_TYPES.SHORT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const supportedTypes: string[] = [
ES_FIELD_TYPES.INTEGER,
ES_FIELD_TYPES.FLOAT,
ES_FIELD_TYPES.LONG,
ES_FIELD_TYPES.UNSIGNED_LONG,
ES_FIELD_TYPES.BYTE,
ES_FIELD_TYPES.HALF_FLOAT,
ES_FIELD_TYPES.SCALED_FLOAT,
Expand Down Expand Up @@ -245,6 +246,7 @@ function getNumericalFields(fields: Field[]): Field[] {
return fields.filter(
(f) =>
f.type === ES_FIELD_TYPES.LONG ||
f.type === ES_FIELD_TYPES.UNSIGNED_LONG ||
f.type === ES_FIELD_TYPES.INTEGER ||
f.type === ES_FIELD_TYPES.SHORT ||
f.type === ES_FIELD_TYPES.BYTE ||
Expand Down

0 comments on commit ae20a3a

Please sign in to comment.