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

fix: xfail sklearn's check_regressors_int #9

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Conversation

lsorber
Copy link
Member

@lsorber lsorber commented Apr 1, 2024

On the one hand: scikit-learn's check_regressors_int expects the output predictions to be the same when fitting on an integer dtype target compared to fitting on an integer-valued float dtype target.

On the other hand: this package ensures that the dtype of predict matches the dtype of the target y that the estimator was fitted on. This is useful when for example the target is a datetime or a timedelta dtype.

These two requirements are incompatible with each other, and therefore we mark sklearn's check_regressors_int as expected to fail in this PR.

@lsorber lsorber self-assigned this Apr 1, 2024
@lsorber lsorber merged commit 9fea615 into main Apr 1, 2024
2 checks passed
@lsorber lsorber deleted the ls-check-estimator branch April 1, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant