Spaces:
Sleeping
Sleeping
Commit
•
4d9329e
1
Parent(s):
8b24986
Update app.py
Browse files
app.py
CHANGED
@@ -61,8 +61,6 @@ def PDF_Preparation(Your_PDF_Name, Qmin, Qmax, Qdamp, rmax, nyquist):
|
|
61 |
# Create a new figure object
|
62 |
fig, ax = plt.subplots()
|
63 |
|
64 |
-
st.write(r)
|
65 |
-
st.write(Gr[0,3:])
|
66 |
# Plot the transformation to make sure everything is alright
|
67 |
ax.plot(PDF[:,0], PDF[:,1], label="Original Data")
|
68 |
ax.plot(r, Gr[0,3:], label="Gr ready for ML")
|
@@ -80,7 +78,8 @@ def POMPredicter(POMFinder, Gr, y_onehotenc_cat):
|
|
80 |
y_pred_proba = y_pred_proba[:,1];
|
81 |
res = sorted(range(len(y_pred_proba)), key = lambda sub: y_pred_proba[sub]);
|
82 |
res.reverse();
|
83 |
-
st.
|
|
|
84 |
st.write("The 2nd guess from the model is: ", str(y_onehotenc_cat.categories_[0][res[1]])[2:-2]+"cale.xyz")
|
85 |
st.write("The 3rd guess from the model is: ", str(y_onehotenc_cat.categories_[0][res[2]])[2:-2]+"cale.xyz")
|
86 |
st.write("The 4th guess from the model is: ", str(y_onehotenc_cat.categories_[0][res[3]])[2:-2]+"cale.xyz")
|
|
|
61 |
# Create a new figure object
|
62 |
fig, ax = plt.subplots()
|
63 |
|
|
|
|
|
64 |
# Plot the transformation to make sure everything is alright
|
65 |
ax.plot(PDF[:,0], PDF[:,1], label="Original Data")
|
66 |
ax.plot(r, Gr[0,3:], label="Gr ready for ML")
|
|
|
78 |
y_pred_proba = y_pred_proba[:,1];
|
79 |
res = sorted(range(len(y_pred_proba)), key = lambda sub: y_pred_proba[sub]);
|
80 |
res.reverse();
|
81 |
+
st.markdown(f'<span style="font-size: 24px; color: green;">The 1st guess from the model is: <b>{str(y_onehotenc_cat.categories_[0][res[0]])[2:-2]+"cale.xyz"}</b></span> <hr/>',unsafe_allow_html=True,)
|
82 |
+
#st.write("The 1st guess from the model is: ", str(y_onehotenc_cat.categories_[0][res[0]])[2:-2]+"cale.xyz")
|
83 |
st.write("The 2nd guess from the model is: ", str(y_onehotenc_cat.categories_[0][res[1]])[2:-2]+"cale.xyz")
|
84 |
st.write("The 3rd guess from the model is: ", str(y_onehotenc_cat.categories_[0][res[2]])[2:-2]+"cale.xyz")
|
85 |
st.write("The 4th guess from the model is: ", str(y_onehotenc_cat.categories_[0][res[3]])[2:-2]+"cale.xyz")
|