Snippets of codesΒΆ

Enumerate all coordinates

<<<

from pymlbenchmark.plotting.plot_helper import list_col_options
from pandas import DataFrame
df = DataFrame([
    dict(i=1, t='aa', x=0.5),
    dict(i=2, t='bb', x=0.5),
    dict(i=2, t='aa', x=0.5),
])
for opt in list_col_options(df, ['i', 't']):
    print(opt)

# if None...
print(list_col_options(df, None))

>>>

    {'i': 1, 't': 'aa'}
    {'i': 1, 't': 'bb'}
    {'i': 2, 't': 'aa'}
    {'i': 2, 't': 'bb'}
    [None]

(original entry : plot_helper.py:docstring of pymlbenchmark.plotting.plot_helper.list_col_options, line 5)

Plot benchmark improvments

(Source code, png, hires.png, pdf)

_images/plot_bench-2.png

(original entry : plot_bench.py:docstring of pymlbenchmark.plotting.plot_bench.plot_bench_xtime, line 16)

Plot benchmark results

(Source code, png, hires.png, pdf)

_images/plot_bench-1.png

(original entry : plot_bench.py:docstring of pymlbenchmark.plotting.plot_bench.plot_bench_results, line 16)