bob.ip.common.utils.table

Functions

performance_table(data, fmt)

Tables result comparison in a given format

performance_table_detection(data, fmt)

Tables result comparison in a given format

bob.ip.common.utils.table.performance_table(data, fmt)[source]

Tables result comparison in a given format

Parameters

data (dict) –

A dictionary in which keys are strings defining plot labels and values are dictionaries with two entries:

  • df: pandas.DataFrame

    A dataframe that is produced by our evaluator engine, indexed by integer “thresholds”, containing the following columns: threshold, tp, fp, tn, fn, mean_precision, mode_precision, lower_precision, upper_precision, mean_recall, mode_recall, lower_recall, upper_recall, mean_specificity, mode_specificity, lower_specificity, upper_specificity, mean_accuracy, mode_accuracy, lower_accuracy, upper_accuracy, mean_jaccard, mode_jaccard, lower_jaccard, upper_jaccard, mean_f1_score, mode_f1_score, lower_f1_score, upper_f1_score, frequentist_precision, frequentist_recall, frequentist_specificity, frequentist_accuracy, frequentist_jaccard, frequentist_f1_score.

  • threshold: list

    A threshold to graph with a dot for each set. Specific threshold values do not affect “second-annotator” dataframes.

fmtstr

One of the formats supported by tabulate.

Returns

table – A table in a specific format

Return type

str

bob.ip.common.utils.table.performance_table_detection(data, fmt)[source]

Tables result comparison in a given format

Parameters

data (dict) –

A dictionary in which keys are strings defining plot labels and values are dictionaries with two entries:

  • df: pandas.DataFrame

    A dataframe that is produced by our evaluator engine, indexed by integer “thresholds”, containing the following columns: threshold, iou.

  • threshold: list

    A threshold to graph with a dot for each set. Specific threshold values do not affect “second-annotator” dataframes.

fmtstr

One of the formats supported by tabulate.

Returns

table – A table in a specific format

Return type

str