Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH]
sklearn 1.2.0
compatibility - remove private _check_weights
…
… import in `KNeighborsTimeSeriesClassifier` and -`Regressor` (#3918) This PR fixes a compatibility issue with `sklearn 1.2` and removes the private import `_check_weights` from `KNeighborsTimeSeriesClassifier` and `KNeighborsTimeSeriesRegressor`. This can be done without deprecation or change in functionality, because `_check_weights` was just an erroneous leftover from an earlier version that used inheritance and not composition. Right now, the `sklearn` classifier is wrapped as a component, so `_check_weights` (or its 1.2 equivalent) is called again inside the component - therefore, naive removal simply removes an unnecessary duplication.
- Loading branch information