Skip to content

Commit

Permalink
fix subset layout example np.Inf
Browse files Browse the repository at this point in the history
Jordy Thielen committed Oct 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 86801e6 commit e3d5e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/optimize_stimulus.py
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@

# Random subset
random_subset = []
value = np.Inf
value = 1 # maximum correlation
random = np.zeros(n_random)
for i in range(n_random):
subset_ = np.random.permutation(T.shape[0])[:n_classes]
@@ -134,7 +134,7 @@

# Random layout
random_layout = []
value = np.Inf
value = 1 # maximum correlation
random = np.zeros(n_random)
for i in range(n_random):
layout_ = np.random.permutation(T.shape[0])

0 comments on commit e3d5e49

Please sign in to comment.