Skip to content

compat(sklearn): address BaseEstimator._validate_data deprecation#25

Open
jhtullis wants to merge 1 commit intogregbellan:stabl_lwfrom
jhtullis:compat/sklearn-17-validation-method
Open

compat(sklearn): address BaseEstimator._validate_data deprecation#25
jhtullis wants to merge 1 commit intogregbellan:stabl_lwfrom
jhtullis:compat/sklearn-17-validation-method

Conversation

@jhtullis
Copy link

@jhtullis jhtullis commented Jun 22, 2025

resolves #24 make Stabl more compatible with more recent versions of scikit-learn

add backwards-compatible fix for warnings/errors related to the deprecation (1.6.0) and removal (1.7.0) of the scikit-learn BaseEstimator._validate_data function

tested this fix using the 'Tutorial Notebook.ipynb' using with various versions of Scikit-learn:

  • 1.7.0: runs better than without the fix, however there are still errors and warnings unrelated to this fix
  • 1.6.0: runs as expected and reduces warnings
  • 1.3.2 (recommended for Stabl): runs as expected

code written with some assistance from Claude 3.7

make Stabl more compatible with more recent versions of scikit-learn

add backwards-compatible fix for warnings/errors related to the deprication (1.6.0) and removal (1.7.0) of the scikit-learn BaseEstimator._validate_data function

tested this fix using the 'Tutorial Notebook.ipynb' using with various versions of Scikit-learn:
- 1.7.0: runs better than without the fix, however there are still errors and warnings unrelated to this fix
- 1.6.0: runs as expected and reduces warnings
- 1.3.2 (recommended for Stabl): runs as expected

code written with assistance from Claude 3.7
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.

scikit-learn 1.7.0+ compatibility: address BaseEstimator._validate_data deprecation and removal

1 participant