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 committed Nov 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d37d553 commit 525fe64
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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,
Original file line number Diff line number Diff line change
@@ -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,
@@ -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 ||

0 comments on commit 525fe64

Please sign in to comment.