Skip to content
Snippets Groups Projects
Commit a2301952 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[utils.plot] Upgrade print to logging output

parent 1f241c73
No related branches found
No related tags found
1 merge request!12Streamlining
...@@ -225,7 +225,7 @@ def precision_recall_f1iso_confintval( ...@@ -225,7 +225,7 @@ def precision_recall_f1iso_confintval(
vert_y = numpy.concatenate((pui[pui > 0], pli[pli > 0][::-1])) vert_y = numpy.concatenate((pui[pui > 0], pli[pli > 0][::-1]))
# hacky workaround to plot 2nd human # hacky workaround to plot 2nd human
if numpy.isclose(numpy.mean(rui), rui[1], rtol=1e-05): if numpy.isclose(numpy.mean(rui), rui[1], rtol=1e-05):
print("found human") logger.warning("Found 2nd human annotator in metrics - patching...")
p = plt.Polygon( p = plt.Polygon(
numpy.column_stack((vert_x, vert_y)), numpy.column_stack((vert_x, vert_y)),
facecolor="none", facecolor="none",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment