*Fix XGBClassifier super()
This commit is contained in:
parent
93d3f4fe61
commit
402e832ce5
@ -792,7 +792,7 @@ class XGBModel(BaseEstimator):
|
|||||||
|
|
||||||
class XGBClassifier(XGBModel, ClassifierMixin):
|
class XGBClassifier(XGBModel, ClassifierMixin):
|
||||||
def __init__(self, max_depth=3, learning_rate=0.1, n_estimators=100, silent=True):
|
def __init__(self, max_depth=3, learning_rate=0.1, n_estimators=100, silent=True):
|
||||||
super().__init__(max_depth, learning_rate, n_estimators, silent, objective="binary:logistic")
|
super(XGBClassifier, self).__init__(max_depth, learning_rate, n_estimators, silent, objective="binary:logistic")
|
||||||
|
|
||||||
def fit(self, X, y, sample_weight=None):
|
def fit(self, X, y, sample_weight=None):
|
||||||
y_values = list(np.unique(y))
|
y_values = list(np.unique(y))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user