Skip to content

Commit

Permalink
DOC fix return type of make_sparse_spd_matrix (scikit-learn#27472)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie-XIAO authored Sep 26, 2023
1 parent 0f43434 commit 457b02c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sklearn/datasets/_samples_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1627,8 +1627,9 @@ def make_sparse_spd_matrix(
Returns
-------
prec : sparse matrix of shape (dim, dim)
The generated matrix.
prec : ndarray or sparse matrix of shape (dim, dim)
The generated matrix. If ``sparse_format=None``, this would be an ndarray.
Otherwise, this will be a sparse matrix of the specified format.
See Also
--------
Expand Down

0 comments on commit 457b02c

Please sign in to comment.