Skip to content

Commit f67b21c

Browse files
committed
MAINT: randn on float is deprecated
1 parent 2943786 commit f67b21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/tests/test_random_projection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def densify(matrix):
5353

5454

5555
n_samples, n_features = (10, 1000)
56-
n_nonzeros = n_samples * n_features / 100.
56+
n_nonzeros = int(n_samples * n_features / 100.)
5757
data, data_csr = make_sparse_random_data(n_samples, n_features, n_nonzeros)
5858

5959

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy