test

Primary inference and testing script. Run python3 test.py -h to see available options.

Module Contents

test.main(hparams, verbose=True)

Main testing routine specific for this project

Parameters

hparams (Namespace) – Namespace containing configuration values

test.autolabel(rects, ax, width)

Attach a text label above each bar in rects, displaying its height.

Parameters

rects (matplotlib.container.BarContainer) – Bar containers

test.single_day_plot(result, hparams, m, benchmark=None)

Plot mteric results for single day output.

Parameters
  • result (dict) – Model inference result dictionary

  • hparams (Namespace) – Hyperparamters

  • benchmark (dict, optional) – Benchmark result dictionary, defaults to None

test.run(**kwargs)

Run inference and do benchmarks if benchmarks=True supplied. The kwargs are equivalent to the commandline arguments.

Returns

Result metrics and the inferred hyperparamters

Return type

tuple