-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
documentation of attributes of HistGradientBoostingClassifier except … #16283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -923,13 +923,24 @@ class HistGradientBoostingClassifier(BaseHistGradientBoosting, | |
|
||
Attributes | ||
---------- | ||
bin_mapper_ : BinMapper object | ||
Transformer that maps a dataset into integer-valued bins. | ||
do_early_stopping_ : bool | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could be public since it is derived from an input parameter. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not very useful, also obsolete once #14516 is merged There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. agreed this is obsolete now :) |
||
Specifies if early stopping is used during the training. | ||
loss_ : callable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could be public since it is derived from an input parameter. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I disagree, the losses are all private objects There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The effective loss name could be stored as a public attribute. |
||
Loss function used by the algorithm. | ||
n_features : int | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could be private There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Private for now and replaced by |
||
The number of selected features. | ||
n_iter_ : int | ||
The number of estimators as selected by early stopping (if | ||
n_iter_no_change is not None). Otherwise it corresponds to max_iter. | ||
n_trees_per_iteration_ : int | ||
The number of tree that are built at each iteration. This is equal to 1 | ||
for binary classification, and to ``n_classes`` for multiclass | ||
classification. | ||
scorer_ : callable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could be public There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this is a very useful public attribute. What are the benefit of exposing it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed, we could also keep it private. The only other classes that have a public Let's keep it private. |
||
Scoring parameter to use for early stopping alternatively to the loss. | ||
None if the loss is used. | ||
train_score_ : ndarray, shape (n_iter_+1,) | ||
The scores at each iteration on the training data. The first entry | ||
is the score of the ensemble before the first iteration. Scores are | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, this could be private.