8000 added header suggestions · scikit-learn/scikit-learn@1010f53 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1010f53

Browse files
Sumit SahaSumit Saha
Sumit Saha
authored and
Sumit Saha
committed
added header suggestions
fix linting error fix2 linting
1 parent 838f1e2 commit 1010f53

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

examples/applications/plot_prediction_latency.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ def _not_in_sphinx():
3838
return "__file__" in globals()
3939

4040

41+
# %%
42+
# Benchmark and plot helper functions
43+
# -----------------------------------
44+
45+
4146
def atomic_benchmark_estimator(estimator, X_test, verbose=False):
4247
"""Measure runtime prediction of each instance."""
4348
n_instances = X_test.shape[0]
@@ -290,13 +295,11 @@ def plot_benchmark_throughput(throughputs, configuration):
290295

291296

292297
# %%
293-
# Main code
298+
# Benchmark bulk/atomic prediction speed for various regressors
299+
# -------------------------------------------------------------
294300

295301
start_time = time.time()
296302

297-
# %%
298-
# Benchmark bulk/atomic prediction speed for various regressors
299-
# -------------------------------------------------------------
300303
configuration = {
301304
"n_train": int(1e3),
302305
"n_test": int(1e2),

0 commit comments

Comments
 (0)
0