8000 [MRG] Updated documentation of fit() for X type in gradient_boosting.py by vivekk0903 · Pull Request #12022 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
8000
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sklearn/ensemble/gradient_boosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1358,9 +1358,10 @@ def fit(self, X, y, sample_weight=None, monitor=None):

Parameters
----------
X : array-like, shape (n_samples, n_features)
Training vectors, where n_samples is the number of samples
and n_features is the number of features.
X : {array-like, sparse matrix}, shape (n_samples, n_features)
The input samples. Internally, it will be converted to
``dtype=np.float32`` and if a sparse matrix is provided
to a sparse ``csr_matrix``.

y : array-like, shape (n_samples,)
Target values (strings or integers in classification, real numbers
Expand Down
0