Skip to content

Commit

Permalink
Update fslite/tests/generate_big_tests.py
Browse files Browse the repository at this point in the history
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
  • Loading branch information
ypriverol and qodo-merge-pro[bot] authored Sep 25, 2024
1 parent 5a91f14 commit 718b743
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fslite/tests/generate_big_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ def generate_large_test_dataset():
chunk_labels = labels[chunk_start:chunk_end]

# Generate chunk of features
# Generate chunk of features
chunk_features = (
(f"feature{i}", np.random.rand(chunk_end - chunk_start))
rng = np.random.default_rng()
chunk_features = {
f"feature{i}": rng.random(chunk_end - chunk_start)
for i in range(1, n_features + 1)
}
)

# Create DataFrame chunk
Expand Down

0 comments on commit 718b743

Please sign in to comment.