[ML] Add check for loss_function when cloning a regression job (#65481)

This commit is contained in:
Pete Harverson 2020-05-06 17:03:01 +01:00 committed by GitHub
parent 8581ba8c38
commit 46b91cc9fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -92,6 +92,7 @@ describe('Analytics job clone action', () => {
training_percent: 20,
randomize_seed: -2228827740028660200,
num_top_feature_importance_values: 4,
loss_function: 'mse',
},
},
analyzed_fields: {
@ -192,6 +193,7 @@ describe('Analytics job clone action', () => {
training_percent: 20,
randomize_seed: -2228827740028660200,
num_top_feature_importance_values: 4,
loss_function: 'mse',
},
},
analyzed_fields: {

View file

@ -179,6 +179,10 @@ const getAnalyticsJobMeta = (config: CloneDataFrameAnalyticsConfig): AnalyticsJo
// By default it is randomly generated
ignore: true,
},
loss_function: {
optional: true,
defaultValue: 'mse',
},
},
}
: {}),