Skip to content

Commit 51454de

Browse files
committed
add a black lineé
1 parent 48e92e3 commit 51454de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_doc/examples/plot_benchmark_rf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,18 +279,19 @@ def measure_inference(fct, X, repeat, max_time=5, quantile=1):
279279
ax.set_xlabel("max_depth", fontsize="small")
280280

281281
# ratio
282-
print(subdf)
283282
ax2 = ax.twinx()
284283
piv1 = subdf.pivot(index="max_depth", columns="name", values="avg")
285284
piv1["speedup"] = piv1.base / piv1.ort_
286285
ax2.plot(piv1.index, piv1.speedup, "b--", label="speedup avg")
287286

288287
piv1 = subdf.pivot(index="max_depth", columns="name", values="med")
289288
piv1["speedup"] = piv1.base / piv1.ort_
290-
print(piv1)
291289
ax2.plot(piv1.index, piv1.speedup, "y--", label="speedup med")
292290
ax2.legend(fontsize="x-small")
293291

292+
# 1
293+
ax2.plot(piv1.index, [1 for _ in piv1.index], "k--", label="no speedup")
294+
294295
for i in range(axes.shape[0]):
295296
for j in range(axes.shape[1]):
296297
axes[i, j].legend(fontsize="small")

0 commit comments

Comments
 (0)