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.x][ML] Regression dependent variable must be numeric (#46072) #46136

Conversation

dimitris-athanasiou
Copy link
Contributor

  • [ML] Regression dependent variable must be numeric

This adds a validation that the dependent variable of a regression
analysis must be numeric.

  • Address review comments and fix some problems

In addition to addressing the review comments, this
commit fixes a few issues I found during testing.

In particular:

  • if there were mappings for required fields but they were
    not included we were not reporting the error
  • if explicitly included fields had unsupported types we were
    not reporting the error

Unfortunately, I couldn't get those fixed without refactoring
the code in ExtractedFieldsDetector.
checked that your submission is for an OS and architecture that we support?

  • If you are submitting this code for a class then read our policy for that.

* [ML] Regression dependent variable must be numeric

This adds a validation that the dependent variable of a regression
analysis must be numeric.

* Address review comments and fix some problems

In addition to addressing the review comments, this
commit fixes a few issues I found during testing.

In particular:

- if there were mappings for required fields but they were
not included we were not reporting the error
- if explicitly included fields had unsupported types we were
not reporting the error

Unfortunately, I couldn't get those fixed without refactoring
the code in `ExtractedFieldsDetector`.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@dimitris-athanasiou dimitris-athanasiou merged commit 5921ae5 into elastic:7.x Aug 30, 2019
@dimitris-athanasiou dimitris-athanasiou deleted the regression-dependent-variable-must-be-numeric-7x branch August 30, 2019 06:57
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.

2 participants