tempo_eval.print_report
- tempo_eval.print_report(output_dir='./', validate=True, corpus_names=None, estimates_dir=None, references_dir=None, include_relative_dir_in_item_id=True, format='kramdown', size=Size.L)[source]
Print reports for references and estimates and make them accessible via an index page.
By default the report covers all built-in references and estimates. When providing an estimates or reference directory, which must contain jams, the report covers only corpora that occur in the provided annotations or are specified in the
corpus_namesargument. By convention, tempo_eval uses the file’sos.path.relpathas item id (relative to the estimates or references directory). You can change this behavior to useos.path.basenameby settinginclude_relative_dir_in_item_idtoFalse. You can override either of these two mechanisms by adding ajam.file_metadata.identifiers['tempo_eval_id']-value to your jams.- Parameters
size (
Size) – size of evaluation report—choose “L” for a comprehensive version, choose “S” for a shorter version with just the essentialsformat (
str) –kramdown,markdownorhtmlcorpus_names (
Optional[List[str]]) – list of corpora to generate reports for. Seelist_reference_corpus_namesto get a list of valid names.output_dir (
str) – output directoryvalidate (
bool) – validate jam while reading (has major performance impact)references_dir (
Optional[str]) – directory to search for reference jamsestimates_dir (
Optional[str]) – directory to search for estimate jamsinclude_relative_dir_in_item_id (
bool) – when using an extra reference or estimate directory, use the relative directory name as part of the item id or not.
- Return type
- Returns
output file name for the index page
- Raises
ValueError – if the given format is not supported
Note
By default, validate is True in order to stay safe. But since it affects performance quite a bit, you might want to turn validation off when using this function to keep your sanity.