Closed Garve closed 1 year ago
See https://github.com/koaning/scikit-lego/issues/555 for the failed checks.
Weird, after I merged your current main into my PR, it says 0 files were changed. Is it ok to remove this commit 1307b56 again?
Wow, I'm stupid, this PR got merged already months ago 😅 I thought I forgot it.
Description
Not all classifiers/regressors have a sample weight keyword, e.g. KNN. If you use one of these models, the ZIR will fail. This PR circumvents the problem by checking if the classifier/regressor has a
sample_weight
as a keyword and only then passes it on. If the classifier or regressor doesn't support sample weights, a warning is logged.Type of change
@koaning