:mod:`test` =========== .. py:module:: test .. autoapi-nested-parse:: Primary inference and testing script. Run ``python3 test.py -h`` to see available options. Module Contents --------------- .. function:: main(hparams, verbose=True) Main testing routine specific for this project :param hparams: Namespace containing configuration values :type hparams: Namespace .. function:: autolabel(rects, ax, width) Attach a text label above each bar in *rects*, displaying its height. :param rects: Bar containers :type rects: matplotlib.container.BarContainer .. function:: single_day_plot(result, hparams, m, benchmark=None) Plot mteric results for single day output. :param result: Model inference result dictionary :type result: dict :param hparams: Hyperparamters :type hparams: Namespace :param benchmark: Benchmark result dictionary, defaults to None :type benchmark: dict, optional .. function:: run(**kwargs) Run inference and do benchmarks if benchmarks=True supplied. The kwargs are equivalent to the commandline arguments. :return: Result metrics and the inferred hyperparamters :rtype: tuple