Skip to content

Conversation

@przemekwitek
Copy link
Contributor

@przemekwitek przemekwitek commented Oct 18, 2019

In line with how are defaults handled in other places (see e.g: DataFrameAnalyticsDest.resultsField) this PR sets the default value of prediction_field_name upon Classification and Regression objects creation.

This way the value of prediction_field_name is directly available to the API user / UI.

Relates #46735

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@benwtrent benwtrent self-requested a review October 18, 2019 13:13
Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we do any checks to verify that there are no field name conflicts between existing fields and these result fields?

@przemekwitek przemekwitek force-pushed the default_prediction_field_name branch from 58f960d to a294134 Compare October 21, 2019 05:29
@przemekwitek
Copy link
Contributor Author

Do we do any checks to verify that there are no field name conflicts between existing fields and these result fields?

FWIU we do protect against DataFrameAnalyticsDest.resultsField (by default set to "ml") being present in the source index here: ExtractedFieldsDetector.checkResultsFieldIsNotPresent.
Prediction field is stored under this resultsField so should not conflict.

@przemekwitek przemekwitek force-pushed the default_prediction_field_name branch from 06dc614 to 055b09c Compare October 21, 2019 07:11
@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample-matrix

@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/default-distro
run elasticsearch-ci/bwc

@przemekwitek przemekwitek force-pushed the default_prediction_field_name branch from 055b09c to 4478212 Compare October 21, 2019 08:06
@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample-matrix

@przemekwitek przemekwitek force-pushed the default_prediction_field_name branch from 4478212 to cdf0745 Compare October 21, 2019 08:28
@przemekwitek
Copy link
Contributor Author

run elasticsearch-ci/packaging-sample-matrix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants