[ML] Add unsigned_long support to data frame analytics and anomaly detection (#82636)

* add support for unsigned_long field in dfa

* add support for unsigned_long for anomaly detection
This commit is contained in:
Melissa Alvarez 2020-11-06 16:51:14 -05:00 committed by GitHub
parent e61c76d2d1
commit ae20a3a2a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -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,

View file

@ -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 ||