Plot¶
Various plotting functions.
Harry Scells Mar 2017
-
irkit.plot.trecplot.
pr_curve
(results: typing.List[irkit.trec.results.TrecEvalResults]) → <module 'matplotlib.pyplot' from '/home/docs/checkouts/readthedocs.org/user_builds/ir-kit/envs/latest/local/lib/python3.5/site-packages/matplotlib-2.0.2-py3.5-linux-x86_64.egg/matplotlib/pyplot.py'>¶ Create a precision-recall graph from trec_eval results.
Parameters: results – A list of TrecEvalResults files. Returns: a matplotlib plt object
-
irkit.plot.trecplot.
topic_ap
(results: typing.List[irkit.trec.results.TrecEvalResults], sort_on_ap=False)¶ Create an average-precision topic visualisation.
Parameters: - results – A list of TrecEvalResults files.
- sort_on_ap – Should the visualisation be sorted using average precision?
Returns: a matplotlib plt object.