def precision_recall_curve(cached_data, ax=None, label=None): thresholds = cached_data[0]['thresholds'] precision = [x['precisions'] for x in cached_data] recall = [x['recalls'] for x in cached_data] image_data = plot_helpers.plot_xy_bootstrapped( precision, recall, thresholds, 'precision', 'recall', ax=ax, label=label) return utf8_decode(image_data)
def roc_curve(cached_data, ax=None, label=None): thresholds = cached_data[0]['thresholds'] fpr = [x['fprs'] for x in cached_data] tpr = [x['recalls'] for x in cached_data] image_data = plot_helpers.plot_xy_bootstrapped( fpr, tpr, thresholds, 'false positive', 'true positive', ax=ax, label=label) return utf8_decode(image_data)
def support_precision_curve(cached_data, ax=None, label=None): thresholds = cached_data[0]['thresholds'] precision = [x['precisions'] for x in cached_data] support = [x['support'] for x in cached_data] image_data = plot_helpers.plot_xy_bootstrapped( support, precision, thresholds, 'support', 'precision', ax=ax, label=label) return utf8_decode(image_data)
def roc_curve(cached_data, ax=None, label=None): thresholds = cached_data[0]['thresholds'] fpr = [x['fprs'] for x in cached_data] tpr = [x['recalls'] for x in cached_data] image_data = plot_helpers.plot_xy_bootstrapped(fpr, tpr, thresholds, 'false positive', 'true positive', ax=ax, label=label) return utf8_decode(image_data)
def precision_recall_curve(cached_data, ax=None, label=None): thresholds = cached_data[0]['thresholds'] precision = [x['precisions'] for x in cached_data] recall = [x['recalls'] for x in cached_data] image_data = plot_helpers.plot_xy_bootstrapped(precision, recall, thresholds, 'precision', 'recall', ax=ax, label=label) return utf8_decode(image_data)