MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / fit

Method fit

python-package/lightgbmmt/sklearn.py:733–750  ·  view source on GitHub ↗

Docstring is inherited from the LGBMModel.

(self, X, y,
            sample_weight=None, init_score=None,
            eval_set=None, eval_names=None, eval_sample_weight=None,
            eval_init_score=None, eval_metric=None, early_stopping_rounds=None,
            verbose=True, feature_name='auto', categorical_feature='auto',
            callbacks=None, init_model=None)

Source from the content-addressed store, hash-verified

731 """LightGBM regressor."""
732
733 def fit(self, X, y,
734 sample_weight=None, init_score=None,
735 eval_set=None, eval_names=None, eval_sample_weight=None,
736 eval_init_score=None, eval_metric=None, early_stopping_rounds=None,
737 verbose=True, feature_name='auto', categorical_feature='auto',
738 callbacks=None, init_model=None):
739 """Docstring is inherited from the LGBMModel."""
740 super(LGBMRegressor, self).fit(X, y, sample_weight=sample_weight,
741 init_score=init_score, eval_set=eval_set,
742 eval_names=eval_names,
743 eval_sample_weight=eval_sample_weight,
744 eval_init_score=eval_init_score,
745 eval_metric=eval_metric,
746 early_stopping_rounds=early_stopping_rounds,
747 verbose=verbose, feature_name=feature_name,
748 categorical_feature=categorical_feature,
749 callbacks=callbacks, init_model=init_model)
750 return self
751
752 _base_doc = LGBMModel.fit.__doc__
753 fit.__doc__ = (_base_doc[:_base_doc.find('eval_class_weight :')]

Callers 7

test_regressionMethod · 0.95
test_regressionMethod · 0.95
test_dartMethod · 0.95
test_joblibMethod · 0.95

Calls 1

fitMethod · 0.45

Tested by 7

test_regressionMethod · 0.76
test_regressionMethod · 0.76
test_dartMethod · 0.76
test_joblibMethod · 0.76