DEVELOPMENT... OpenML
Flow
sklearn.ensemble._hist_gradient_boosting.gradient_boosting.HistGradientBoostingClassifier

sklearn.ensemble._hist_gradient_boosting.gradient_boosting.HistGradientBoostingClassifier

Visibility: public Uploaded 13-09-2021 by Perez sklearn==0.24.2 numpy>=1.13.3 scipy>=0.19.1 joblib>=0.11 threadpoolctl>=2.0.0 0 runs
0 likes downloaded by 0 people 0 issues 0 downvotes , 0 total downloads
  • openml-python python scikit-learn sklearn sklearn_0.24.2
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
Histogram-based Gradient Boosting Classification Tree. This estimator is much faster than :class:`GradientBoostingClassifier` for big datasets (n_samples >= 10 000). This estimator has native support for missing values (NaNs). During training, the tree grower learns at each split point whether samples with missing values should go to the left or right child, based on the potential gain. When predicting, samples with missing values are assigned to the left or right child consequently. If no missing values were encountered for a given feature during training, then samples with missing values are mapped to whichever child has the most samples. This implementation is inspired by `LightGBM `_. .. note:: This estimator is still experimental for now: the predictions and the API might change without any deprecation cycle. To use it, you need to explicitly import ``enable_hist_gradient_boosting``:: >>> # explicit...

Parameters

categorical_featuresIndicates the categorical featuresdefault: null
early_stoppingIf 'auto', early stopping is enabled if the sample size is larger than 10000. If True, early stopping is enabled, otherwise early stopping is disabled .. versionadded:: 0.23default: "auto"
l2_regularizationThe L2 regularization parameter. Use 0 for no regularizationdefault: 0.2244
learning_rateThe learning rate, also known as *shrinkage*. This is used as a multiplicative factor for the leaves values. Use ``1`` for no shrinkagedefault: 0.4915
lossdefault: "auto"
max_binsThe maximum number of bins to use for non-missing values. Before training, each feature of the input array `X` is binned into integer-valued bins, which allows for a much faster training stage Features with a small number of unique values may use less than ``max_bins`` bins. In addition to the ``max_bins`` bins, one more bin is always reserved for missing values. Must be no larger than 255default: 255
max_depthThe maximum depth of each tree. The depth of a tree is the number of edges to go from the root to the deepest leaf Depth isn't constrained by defaultdefault: 32
max_iterThe maximum number of iterations of the boosting process, i.e. the maximum number of trees for binary classification. For multiclass classification, `n_classes` trees per iteration are builtdefault: 100
max_leaf_nodesThe maximum number of leaves for each tree. Must be strictly greater than 1. If None, there is no maximum limitdefault: 31
min_samples_leafThe minimum number of samples per leaf. For small datasets with less than a few hundred samples, it is recommended to lower this value since only very shallow trees would be builtdefault: 20
monotonic_cstIndicates the monotonic constraint to enforce on each feature. -1, 1 and 0 respectively correspond to a negative constraint, positive constraint and no constraint. Read more in the :ref:`User Guide ` .. versionadded:: 0.23default: null
n_iter_no_changeUsed to determine when to "early stop". The fitting process is stopped when none of the last ``n_iter_no_change`` scores are better than the ``n_iter_no_change - 1`` -th-to-last one, up to some tolerance. Only used if early stopping is performeddefault: 10
random_statePseudo-random number generator to control the subsampling in the binning process, and the train/validation data split if early stopping is enabled Pass an int for reproducible output across multiple function calls See :term:`Glossary `.default: null
scoringScoring parameter to use for early stopping. It can be a single string (see :ref:`scoring_parameter`) or a callable (see :ref:`scoring`). If None, the estimator's default scorer is used. If ``scoring='loss'``, early stopping is checked w.r.t the loss value. Only used if early stopping is performeddefault: "loss"
tolThe absolute tolerance to use when comparing scores. The higher the tolerance, the more likely we are to early stop: higher tolerance means that it will be harder for subsequent iterations to be considered an improvement upon the reference scoredefault: 1e-07
validation_fractionProportion (or absolute size) of training data to set aside as validation data for early stopping. If None, early stopping is done on the training data. Only used if early stopping is performeddefault: 0.1
verboseThe verbosity level. If not zero, print some information about the fitting processdefault: 0
warm_startWhen set to ``True``, reuse the solution of the previous call to fit and add more estimators to the ensemble. For results to be valid, the estimator should be re-trained on the same data only See :term:`the Glossary `default: false

0
Runs

List all runs
Parameter:
Rendering chart
Rendering table