8000 Merge pull request #6244 from harrymvr/patch-1 · scikit-learn/scikit-learn@84ef805 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84ef805

Browse files
committed
Merge pull request #6244 from harrymvr/patch-1
Fixes make_sparse_spd_matrix documentation
2 parents 1b4a9f2 + b50d3ed commit 84ef805

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