Skip to content
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][Inference] Adding preprocessors to definition object #47320

Conversation

benwtrent
Copy link
Member

Within the definition of a trained model, we should include the pre-processing that needs to occur based on the training data.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

Copy link
Contributor

@przemekwitek przemekwitek left a comment

Choose a reason for hiding this comment

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

LGTM

TRAINED_MODEL);
PARSER.declareNamedObjects(TrainedModelDefinition.Builder::setPreProcessors,
(p, c, n) -> p.namedObject(PreProcessor.class, n, null),
(trainedModelDefBuilder) -> {/* Does not matter client side*/ },
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Could you make comments in lines 48 and 52 equal?

@@ -242,6 +230,9 @@ public int hashCode() {
}


public static class Definition {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not needed, is it?

Copy link
Member Author

Choose a reason for hiding this comment

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

buahaha :D nope!

@benwtrent benwtrent merged commit e2395ad into elastic:master Oct 1, 2019
@benwtrent benwtrent deleted the feature/ml-inference-add-preprocessors-to-model-obj branch October 1, 2019 13:48
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request Oct 1, 2019
)

* [ML][Inference] Adding preprocessors to definition object

* Update TrainedModelConfig.java
benwtrent added a commit that referenced this pull request Oct 1, 2019
…) (#47370)

* [ML][Inference] Adding preprocessors to definition object (#47320)

* [ML][Inference] Adding preprocessors to definition object

* Update TrainedModelConfig.java

* adjusting for backport
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