This commit raises an error when non_nan_indices is empty. There will only be nan values in the target column during regression, because nan values will be converted into labels for other problem types. During regression, all non-numerics in the target column will be turned into nan values and their rows will be dropped. If all the values in the batch are not numeric, all of the rows will be dropped and the feature transformer will fail. This raises an error before that happens.
Issue #, if available:
Description of changes:
Merge Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.
This commit raises an error when
non_nan_indices
is empty. There will only be nan values in the target column during regression, because nan values will be converted into labels for other problem types. During regression, all non-numerics in the target column will be turned into nan values and their rows will be dropped. If all the values in the batch are not numeric, all of the rows will be dropped and the feature transformer will fail. This raises an error before that happens.Issue #, if available:
Description of changes:
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.