Skip to content

Commit

Permalink
DOC gradient boosting fit() supports sparse X (scikit-learn#12022)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekk0903 authored and jnothman committed Sep 6, 2018
1 parent 1fafc5c commit 3a80162
Showing 1 changed file with 4 additions and 3 deletions.
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 comments on commit 3a80162

Please sign in to comment.