Skip to content

Commit

Permalink
[ML] Add check for loss_function when cloning a regression job (elast…
Browse files Browse the repository at this point in the history
  • Loading branch information
peteharverson committed May 6, 2020
1 parent 582c986 commit 97aa353
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ const getAnalyticsJobMeta = (config: CloneDataFrameAnalyticsConfig): AnalyticsJo
// By default it is randomly generated
ignore: true,
},
loss_function: {
optional: true,
defaultValue: 'mse',
},
},
}
: {}),
Expand Down

0 comments on commit 97aa353

Please sign in to comment.