phausamann / sklearn-xarray

Metadata-aware machine learning.
http://bit.do/sklearn-xarray
BSD 3-Clause "New" or "Revised" License
102 stars 12 forks source link

Wrappers with compat=False do not pass check_estimator #46

Closed phausamann closed 5 years ago

phausamann commented 5 years ago

check_estimator set all of the parameters from get_params to different test values and changing the logical value of compat also changes what get_params returns.

There is no straightforward solution to this problem because check_estimator disallows parameters that change other parameters of the same estimator in any way.

In general, there are three possibilities how wrappers could present the parameters of the wrapped estimator:

In any case, if all of these possibilities were to be implemented, we would have to define a dedicated wrapper class for each and have wrap return the appropriate class according to the compat argument.