Skip to content

[7.x] [ML] adding prediction_field_type to inference config (#55128)#55230

Merged
benwtrent merged 2 commits intoelastic:7.xfrom
benwtrent:backport/7.x/pr-55128
Apr 15, 2020
Merged

[7.x] [ML] adding prediction_field_type to inference config (#55128)#55230
benwtrent merged 2 commits intoelastic:7.xfrom
benwtrent:backport/7.x/pr-55128

Conversation

@benwtrent
Copy link
Copy Markdown
Member

Backports the following commits to 7.x:

Data frame analytics dynamically determines the classification field type. This field type then dictates the encoded JSON that is written to Elasticsearch. 

Inference needs to know about this field type so that it may provide the EXACT SAME predicted values as analytics. 

Here is added a new field `prediction_field_type` which indicates the desired type. Options are: `string` (DEFAULT), `number`, `boolean` (where close_to(1.0) == true, false otherwise). 

Analytics provides the default `prediction_field_type` when the model is created from the process.
@benwtrent benwtrent added :ml Machine learning backport labels Apr 15, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/ml-core (:ml)

@benwtrent benwtrent merged commit 8ff2cbf into elastic:7.x Apr 15, 2020
@benwtrent benwtrent deleted the backport/7.x/pr-55128 branch April 15, 2020 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :ml Machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants