-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] Rename data frame analytics maximum_number_trees to max_trees #53300
[ML] Rename data frame analytics maximum_number_trees to max_trees #53300
Conversation
Deprecates `maximum_number_trees` parameter of classification and regression and replaces it with `max_trees`.
Pinging @elastic/ml-core (:ml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a question, everything else looks good
@@ -43,6 +43,9 @@ | |||
"maximum_number_trees" : { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove the old mapping can't you? If a new index is being created we don't need it and if the index is an old one then the mapping is already present?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes sense to keep it around for the possibility that a job using the old field name is cloned into a new index.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't the cloned job go through the process of renaming the field automatically as it is parsed and written out to xcontent.
I think what is bothering me is that we can't comment on the mapping json // remove this at 9.0.0
and no doubt it will be forgotten about. If it can go now I'd rather we get rid of it.
Can you at least try removing the old mapping and see if the upgrade tests pass please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point. There is a test failing but I can fix the test. I'll give it a go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@elasticmachine update branch |
8584c94
to
e46e008
Compare
@elasticmachine update branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Deprecates
maximum_number_trees
parameter of classification andregression and replaces it with
max_trees
.