mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[ML] Add check for loss_function when cloning a regression job (#65481)
This commit is contained in:
parent
8581ba8c38
commit
46b91cc9fd
2 changed files with 6 additions and 0 deletions
|
@ -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: {
|
||||
|
|
|
@ -179,6 +179,10 @@ const getAnalyticsJobMeta = (config: CloneDataFrameAnalyticsConfig): AnalyticsJo
|
|||
// By default it is randomly generated
|
||||
ignore: true,
|
||||
},
|
||||
loss_function: {
|
||||
optional: true,
|
||||
defaultValue: 'mse',
|
||||
},
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue