Skip to content

Commit e982ade

Browse files
committed
n_feats from 20 to 60
1 parent 080bba0 commit e982ade

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/plot_speed.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,21 +174,21 @@ def baseline(X, y, t):
174174
X = rng.random((3000, 400))
175175
y = rng.random((3000, 20))
176176

177-
feature_num = np.arange(30, 71, step=10, dtype=int)
177+
feature_num = np.arange(20, 61, step=10, dtype=int)
178178

179179

180180
time_h = np.zeros(len(feature_num), dtype=float)
181181
time_eta = np.zeros(len(feature_num), dtype=float)
182-
for i, n_feat in enumerate(feature_num):
182+
for i, n_feats in enumerate(feature_num):
183183
times_h = repeat(
184-
f"s = FastCan({n_feat + 1}, verbose=0).fit(X, y)",
184+
f"s = FastCan({n_feats + 1}, verbose=0).fit(X, y)",
185185
number=1,
186186
repeat=10,
187187
globals=globals(),
188188
)
189189
time_h[i] = np.median(times_h)
190190
times_eta = repeat(
191-
f"s = FastCan({n_feat + 1}, eta=True, verbose=0).fit(X, y)",
191+
f"s = FastCan({n_feats + 1}, eta=True, verbose=0).fit(X, y)",
192192
number=1,
193193
repeat=10,
194194
globals=globals(),

0 commit comments

Comments
 (0)