Spaces:
Sleeping
Sleeping
scorpion237
commited on
Commit
•
fc0db7a
1
Parent(s):
c4e746f
Update app.py
Browse files
app.py
CHANGED
@@ -297,8 +297,8 @@ def main():
|
|
297 |
st.subheader(":green[score d'exactitude]")
|
298 |
st.write(f"{round(ann_score*100,2)}% d'exactitude")
|
299 |
st.subheader(':green[Prediction Probability]')
|
300 |
-
|
301 |
-
|
302 |
st.write(pd.concat([zero, un], axis=1).round(2))
|
303 |
|
304 |
else:
|
@@ -435,13 +435,10 @@ def main():
|
|
435 |
df = pd.concat([data_input, prediction], axis=1)
|
436 |
st.write(df)
|
437 |
st.subheader(":green[probability] :question:")
|
438 |
-
|
439 |
-
|
440 |
st.write(pd.concat([zero, un], axis=1).round(2))
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
|
446 |
# lancer l'application
|
447 |
if __name__ == "__main__":
|
|
|
297 |
st.subheader(":green[score d'exactitude]")
|
298 |
st.write(f"{round(ann_score*100,2)}% d'exactitude")
|
299 |
st.subheader(':green[Prediction Probability]')
|
300 |
+
un = pd.DataFrame(pred_proba, columns=['1'])
|
301 |
+
zero = pd.DataFrame(np.subtract(1, pred_proba), columns=['0'])
|
302 |
st.write(pd.concat([zero, un], axis=1).round(2))
|
303 |
|
304 |
else:
|
|
|
435 |
df = pd.concat([data_input, prediction], axis=1)
|
436 |
st.write(df)
|
437 |
st.subheader(":green[probability] :question:")
|
438 |
+
un = pd.DataFrame(pred_proba, columns=['1'])
|
439 |
+
zero = pd.DataFrame(np.subtract(1, pred_proba), columns=['0'])
|
440 |
st.write(pd.concat([zero, un], axis=1).round(2))
|
441 |
+
|
|
|
|
|
|
|
442 |
|
443 |
# lancer l'application
|
444 |
if __name__ == "__main__":
|