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

[7.6] [ML] adding multi-field limitation for inference + analytics (#920) #923

Merged
merged 1 commit into from
Mar 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/en/stack/ml/df-analytics/dfanalytics-limitations.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,29 @@ If a reduction in runtime is important to you, try strategies such as disabling
feature importance, using a smaller {transform}, setting
{ref}/put-dfanalytics.html#ml-hyperparam-optimization[hyperparameter] values, or
only selecting fields that are relevant for analysis.

[float]
[[dfa-inference-multi-field]]
=== Analytics training on multi-field values may affect {infer}

{dfanalytics-jobs-cap} dynamically select the best field when multi-field
values are included. For example, if a multi-field `foo` is included for training,
the `foo.keyword` is actually used. This poses a complication for {infer} with
the inference processor. Documents supplied to ingest pipelines are not mapped. Consequently,
only the field `foo` is present. This means that a model trained with the field `foo.keyword`
does not take the field `foo` into account.

You can work around this limitation by using the `field_mappings` parameter in the inference processor.

Example:
```
{
"inference": {
"model_id": "my_model_with_multi-fields",
"field_mappings": {
"foo": "foo.keyword"
},
"inference_config": { "regression": {} }
}
}
```