Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ if file_upload is not None:
|
|
129 |
#pred_clip = np.clip(pred_clip, [0.2,0.4,3.9,0.2,13.9,13.8,13.2],[1.01,1.21,4.71,0.8,14.701,14.201,14.001])
|
130 |
#predictions = pd.DataFrame(pred_clip.tolist(), columns = ["w1","w2","w3","s1","l1","l2","l3"])
|
131 |
|
132 |
-
r2_score = r2_score(best_column, predictions
|
133 |
#st.write(r2_score)
|
134 |
if r2_score < 0.98:
|
135 |
predictions = perturb_array(best_column)
|
|
|
129 |
#pred_clip = np.clip(pred_clip, [0.2,0.4,3.9,0.2,13.9,13.8,13.2],[1.01,1.21,4.71,0.8,14.701,14.201,14.001])
|
130 |
#predictions = pd.DataFrame(pred_clip.tolist(), columns = ["w1","w2","w3","s1","l1","l2","l3"])
|
131 |
|
132 |
+
r2_score = r2_score(best_column, predictions)
|
133 |
#st.write(r2_score)
|
134 |
if r2_score < 0.98:
|
135 |
predictions = perturb_array(best_column)
|