Skip to content

Comments

[7.x][ML] DFA _explain API should not fail when none field is include…#66288

Merged
dimitris-athanasiou merged 1 commit intoelastic:7.xfrom
dimitris-athanasiou:improve-error-msg-when-explain-dfa-encounters-no-features-7x
Dec 14, 2020
Merged

[7.x][ML] DFA _explain API should not fail when none field is include…#66288
dimitris-athanasiou merged 1 commit intoelastic:7.xfrom
dimitris-athanasiou:improve-error-msg-when-explain-dfa-encounters-no-features-7x

Conversation

@dimitris-athanasiou
Copy link
Contributor

…d (#66281)

This commit fixes an issue with DFA _explain API where if it is called
and no field is included, it results to an error message coming from
the c++ process due to the data frame having no columns.

We want the _explain API not to error when no fields are included
exactly in order to explain to the user why it is that no fields
are included. Thus, we can simply fix this by not running the
memory estimation process and returning zero estimates instead.

Note that the _start API will fail with a user friendly error message
that informs there are no included fields.

Backport of #66281

elastic#66281)

This commit fixes an issue with DFA _explain API where if it is called
and no field is included, it results to an error message coming from
the c++ process due to the data frame having no columns.

We want the _explain API not to error when no fields are included
exactly in order to explain to the user why it is that no fields
are included. Thus, we can simply fix this by not running the
memory estimation process and returning zero estimates instead.

Note that the _start API will fail with a user friendly error message
that informs there are no included fields.

Backport of elastic#66281
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@dimitris-athanasiou dimitris-athanasiou merged commit 9cf8949 into elastic:7.x Dec 14, 2020
@dimitris-athanasiou dimitris-athanasiou deleted the improve-error-msg-when-explain-dfa-encounters-no-features-7x branch December 14, 2020 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >bug :ml Machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants