Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
rename one example
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed May 1, 2020
1 parent 1889e9a commit f3f29b9
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
.. _l-example-parallelism:
.. _l-example-tree-ensemble:
Benchmark Random Forests, Tree Ensemble
=======================================
Expand All @@ -10,8 +10,7 @@
.. contents::
:local:
Imports
Import
+++++++
"""
import os
Expand Down Expand Up @@ -176,13 +175,18 @@ def measure_onnx_runtime(model, xt, repeat=REPEAT, number=NUMBER, verbose=True):
##############################################
# Summary
# +++++++

#
# All data
df = pandas.DataFrame(compilation)
print(df)

#########################################
# Time per model and runtime.
piv = df.pivot("model", "runtime", "average")
print(piv)

###########################################
# Graphs.
piv.T.plot()
import matplotlib.pyplot as plt
plt.show()

0 comments on commit f3f29b9

Please sign in to comment.