8000 Fixes make_sparse_spd_matrix documentation · scikit-learn/scikit-learn@b50d3ed · GitHub
[go: up one dir, main page]

Skip to content

Commit b50d3ed

Browse files
committed
Fixes make_sparse_spd_matrix documentation
Updates the documentation of the parameter alpha in make_sparse_spd_matrix() to reflect its effect in sparsity.
1 parent 1b4a9f2 commit b50d3ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/datasets/samples_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,8 @@ def make_sparse_spd_matrix(dim=1, alpha=0.95, norm_diag=False,
11961196
The size of the random matrix to generate.
11971197
11981198
alpha: float between 0 and 1, optional (default=0.95)
1199-
The probability that a coefficient is non zero (see notes).
1199+
The probability that a coefficient is zero (see notes). Larger values
1200+
enforce more sparsity.
12001201
12011202
random_state : int, RandomState instance or None, optional (default=None)
12021203
If int, random_state is the seed used by the random number generator;

0 commit comments

Comments
 (0)
0