We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 080bba0 commit e982adeCopy full SHA for e982ade
examples/plot_speed.py
@@ -174,21 +174,21 @@ def baseline(X, y, t):
174
X = rng.random((3000, 400))
175
y = rng.random((3000, 20))
176
177
-feature_num = np.arange(30, 71, step=10, dtype=int)
+feature_num = np.arange(20, 61, step=10, dtype=int)
178
179
180
time_h = np.zeros(len(feature_num), dtype=float)
181
time_eta = np.zeros(len(feature_num), dtype=float)
182
-for i, n_feat in enumerate(feature_num):
+for i, n_feats in enumerate(feature_num):
183
times_h = repeat(
184
- f"s = FastCan({n_feat + 1}, verbose=0).fit(X, y)",
+ f"s = FastCan({n_feats + 1}, verbose=0).fit(X, y)",
185
number=1,
186
repeat=10,
187
globals=globals(),
188
)
189
time_h[i] = np.median(times_h)
190
times_eta = repeat(
191
- f"s = FastCan({n_feat + 1}, eta=True, verbose=0).fit(X, y)",
+ f"s = FastCan({n_feats + 1}, eta=True, verbose=0).fit(X, y)",
192
193
194
0 commit comments