Closed kiudee closed 4 years ago
The official scikit-learn BaseEstimator interface specifies that the get_params method should handle the keyword parameter deep: https://github.com/scikit-learn/scikit-learn/blob/0fb307bf39bbdacd6ed713c00724f8f871d60370/sklearn/base.py#L189
get_params
deep
Since keyword arguments are not caught, our library will error out with:
File ".../lib/python3.7/site-packages/sklearn/base.py", line 85, in clone new_object_params = estimator.get_params(deep=False) TypeError: get_params() got an unexpected keyword argument 'deep'
A quick fix should be to capture all keyword arguments and to default to deep=True (what we are currently doing).
Fixed in https://github.com/kiudee/cs-ranking/pull/172.
The official scikit-learn BaseEstimator interface specifies that the
get_params
method should handle the keyword parameterdeep
: https://github.com/scikit-learn/scikit-learn/blob/0fb307bf39bbdacd6ed713c00724f8f871d60370/sklearn/base.py#L189Since keyword arguments are not caught, our library will error out with:
A quick fix should be to capture all keyword arguments and to default to deep=True (what we are currently doing).