diff ml_visualization_ex.py @ 2:e23cfe4be9d4 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 02087ce2966cf8b4aac9197a41171e7f986c11d1-dirty"
author bgruening
date Wed, 02 Oct 2019 03:46:45 -0400
parents cc49634df38f
children 2b8406e74f9e
line wrap: on
line diff
--- a/ml_visualization_ex.py	Fri Sep 13 12:08:44 2019 -0400
+++ b/ml_visualization_ex.py	Wed Oct 02 03:46:45 2019 -0400
@@ -146,7 +146,8 @@
             precision["micro"], recall["micro"], _ = precision_recall_curve(
                 df1.values.ravel(), df2.values.ravel(), pos_label=pos_label)
             ap['micro'] = average_precision_score(
-                df1.values, df2.values, average='micro', pos_label=pos_label or 1)
+                df1.values, df2.values, average='micro',
+                pos_label=pos_label or 1)
 
         data = []
         for key in precision.keys():
@@ -201,7 +202,7 @@
             )
             data.append(trace)
 
-        trace = go.Scatter(x=[0, 1], y=[0, 1], 
+        trace = go.Scatter(x=[0, 1], y=[0, 1],
                            mode='lines', 
                            line=dict(color='black', dash='dash'),
                            showlegend=False)