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

[MNT] downwards compatibility fixes for minimal dependency set #4041

Merged
merged 8 commits into from Jan 10, 2023

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Jan 2, 2023

This PR contains downwards compatibility fixes for the minimal version dependency set currently supported by sktime.
Because CI was not testing for minimal version dependencies, there have been punctual divergences in compatibility with the minimal dependency set. This PR aims to fix this.

PR #4016 introduces a CI element to test on the minimal dependency set, against which the fixes in this PR are developed.

Fixes:

  • old sklearn versions require an experimental enablement flag for use of HistGradientBoostingRegressor. The fix is to include that flag conditional on sklearn version.
  • the DateTimeFeatures transformer depends on pandas DatetimeProperties which is only available in its current form since pandas 1.2.0. The fix is to include this as a dependency requirement in the estimator and isolate the tests conditionally.

Depends on:

@fkiraly fkiraly added the maintenance Continuous integration, unit testing & package distribution label Jan 2, 2023
@fkiraly fkiraly merged commit 811405b into main Jan 10, 2023
@fkiraly fkiraly deleted the minimaldep-fixes branch January 10, 2023 10:46
klam-data pushed a commit to CodeSmithDSMLProjects/sktime that referenced this pull request Jan 18, 2023
…e#4041)

This PR contains downwards compatibility fixes for the minimal version dependency set currently supported by `sktime`.
Because CI was not testing for minimal version dependencies, there have been punctual divergences in compatibility with the minimal dependency set. This PR aims to fix this.

PR sktime#4016 introduces a CI element to test on the minimal dependency set, against which the fixes in this PR are developed.

Fixes:
* old `sklearn` versions require an experimental enablement flag for use of `HistGradientBoostingRegressor`. The fix is to include that flag conditional on `sklearn` version.
* the `DateTimeFeatures` transformer depends on `pandas` `DatetimeProperties` which is only available in its current form since `pandas 1.2.0`. The fix is to include this as a dependency requirement in the estimator and isolate the tests conditionally.

Depends on:
* sktime#4044 as PEP 440 specifiers are introduced in estimator dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Continuous integration, unit testing & package distribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant