sklearn_pmml_model.ensemble.gb
#
Module Contents#
Classes#
Gradient Boosting for classification. |
|
Gradient Boosting for regression. |
- class sklearn_pmml_model.ensemble.gb.PMMLGradientBoostingClassifier(pmml)#
Bases:
sklearn_pmml_model.base.IntegerEncodingMixin
,sklearn_pmml_model.base.PMMLBaseClassifier
,sklearn.ensemble.GradientBoostingClassifier
,abc.ABC
Gradient Boosting for classification.
GB builds an additive model in a forward stage-wise fashion; it allows for the optimization of arbitrary differentiable loss functions. In each stage
n_classes_
regression trees are fit on the negative gradient of the binomial or multinomial deviance loss function. Binary classification is a special case where only a single regression tree is induced.The PMML model consists out of a <Segmentation> element, that contains various <Segment> elements. Each segment contains it’s own <TreeModel>. For Gradient Boosting, only segments with a <True/> predicate are supported.
- Parameters:
- pmmlstr, object
Filename or file object containing PMML data.
Notes
Specification: http://dmg.org/pmml/v4-3/MultipleModels.html
- fit(x, y)#
Not supported: PMML models are already fitted.
- _raw_predict(x)#
Override to support categorical features.
- _more_tags()#
- class sklearn_pmml_model.ensemble.gb.PMMLGradientBoostingRegressor(pmml)#
Bases:
sklearn_pmml_model.base.IntegerEncodingMixin
,sklearn_pmml_model.base.PMMLBaseRegressor
,sklearn.ensemble.GradientBoostingRegressor
,abc.ABC
Gradient Boosting for regression.
GB builds an additive model in a forward stage-wise fashion; it allows for the optimization of arbitrary differentiable loss functions. In each stage
n_classes_
regression trees are fit on the negative gradient of the binomial or multinomial deviance loss function. Binary classification is a special case where only a single regression tree is induced.The PMML model consists out of a <Segmentation> element, that contains various <Segment> elements. Each segment contains it’s own <TreeModel>. For Gradient Boosting, only segments with a <True/> predicate are supported.
- Parameters:
- pmmlstr, object
Filename or file object containing PMML data.
Notes
Specification: http://dmg.org/pmml/v4-3/MultipleModels.html
- fit(x, y)#
Not supported: PMML models are already fitted.
- _raw_predict(x)#
Override to support categorical features.
- _more_tags()#