Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
/ plot-trec_eval Public archive

Plotting scripts for trec_eval output. Useful for reporting on IR system evaluations.

Notifications You must be signed in to change notification settings

cvanweelden/plot-trec_eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plot-trec_eval

Plotting scripts for trec_eval output. Useful for reporting on IR system evaluations.

These require Python (2.6 or 2.7), NumPy, and matplotlib.

###Precision-recall curves

Plot precision-recall curves. These show the performance over all topics for ranked retrieval systems.

Usage: python plot_pr_curve.py [-h] [-f OUTFILE] FILE [FILE ...]

Options:
-h Show this help message and exit.
-f FILENAME Save the figure to specified file.

Pass multiple files to plot all the runs in the same plot.

Example

$ python plot_pr_curve -f pr_curve.pdf indri.eval okapi.eval

Per-topic AP or AP difference

Plot AP per topic for 1 run or per-topic difference for 2 runs.

Usage: python plot_topic_difference.py [-h] [-f OUTFILE] FILE1 [FILE2]

Options:
-h Show this help message and exit.
-f FILENAME Save the figure to specified file.
-s Sort the topics in descending AP/difference.

When passing two files the plotted difference is FILE1 - FILE2.

Example

$ python plot_topic_difference -f topic_difference.pdf indri.eval okapi.eval -s

About

Plotting scripts for trec_eval output. Useful for reporting on IR system evaluations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages