You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing a binary classifier. To support multi-class problems, I copied the approach from Gaussian process classification: if n_classes > 2, wrap the binary classifier in a OneVsOneClassifier or OneVsRestClassifier.
However, this is incompatible with me adding additional arguments to fit(), because the wrappers don't forwards these arguments to the wrapped binary classifier.
AIUI the fix would be to change all fit(X, y) methods in sklearn.multiclass to fit(X, y, **kwargs), and pass that new argument to the wrapped.fit(X, y, **kwargs) call.
Should I simply create a merge request, or am I missing something?
Description
I'm implementing a binary classifier. To support multi-class problems, I copied the approach from Gaussian process classification: if n_classes > 2, wrap the binary classifier in a
OneVsOneClassifier
orOneVsRestClassifier
.However, this is incompatible with me adding additional arguments to
fit()
, because the wrappers don't forwards these arguments to the wrapped binary classifier.AIUI the fix would be to change all
fit(X, y)
methods insklearn.multiclass
tofit(X, y, **kwargs)
, and pass that new argument to thewrapped.fit(X, y, **kwargs)
call.Should I simply create a merge request, or am I missing something?
Versions
The text was updated successfully, but these errors were encountered: