Skip to content

Commit

Permalink
Add n_splits_
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-oHr-N committed Mar 1, 2020
1 parent c8a037f commit 1b01279
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions optgbm/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ def fit(

self.best_params_ = {**params, **self.study_.best_params}
self._best_iteration = self.study_.user_attrs["best_iteration"]
self.n_splits_ = cv.get_n_splits(X, y, groups=groups)

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -696,6 +697,9 @@ class OGBMClassifier(_BaseOGBMModel, ClassifierMixin):
n_features_
Number of features of fitted model.
n_splits_:
Number of cross-validation splits.
study_
Actual study.
Expand Down Expand Up @@ -863,6 +867,9 @@ class OGBMRegressor(_BaseOGBMModel, RegressorMixin):
n_features_
Number of features of fitted model.
n_splits_:
Number of cross-validation splits.
study_
Actual study.
Expand Down

0 comments on commit 1b01279

Please sign in to comment.