Skip to content

Commit 457b02c

Browse files
authored
DOC fix return type of make_sparse_spd_matrix (scikit-learn#27472)
1 parent 0f43434 commit 457b02c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sklearn/datasets/_samples_generator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,8 +1627,9 @@ def make_sparse_spd_matrix(
16271627
16281628
Returns
16291629
-------
1630-
prec : sparse matrix of shape (dim, dim)
1631-
The generated matrix.
1630+
prec : ndarray or sparse matrix of shape (dim, dim)
1631+
The generated matrix. If ``sparse_format=None``, this would be an ndarray.
1632+
Otherwise, this will be a sparse matrix of the specified format.
16321633
16331634
See Also
16341635
--------

0 commit comments

Comments
 (0)