Spaces:
Runtime error
Runtime error
Small aesthetics fix
Browse files
app.py
CHANGED
@@ -75,14 +75,14 @@ plt.tight_layout()
|
|
75 |
col1.pyplot(fig)
|
76 |
|
77 |
fig2, ax = plt.subplots()
|
78 |
-
sns.distplot(df["upvote_ratio"], ax=ax)
|
79 |
ax.set_ylabel("Number of posts")
|
80 |
plt.tight_layout()
|
81 |
col2.pyplot(fig2)
|
82 |
|
83 |
# Performance metrics
|
84 |
st.markdown("## Performance Metrics")
|
85 |
-
st.markdown("The model achieved the below scores on the test set. Please keep the effect of the sample weights in mind as explained in the Github repository. These reduce for example the R2 score from 0.75 to roughly 0. However, despite these low scores, the model is more useful in practice as it provides a meaningful lower bound estimate of the likes to be received as opposed to overestimating every post by up to 1500")
|
86 |
st.dataframe(df_metrics)
|
87 |
|
88 |
# Prediction error plots
|
|
|
75 |
col1.pyplot(fig)
|
76 |
|
77 |
fig2, ax = plt.subplots()
|
78 |
+
sns.distplot(df["upvote_ratio"], ax=ax, kde=False)
|
79 |
ax.set_ylabel("Number of posts")
|
80 |
plt.tight_layout()
|
81 |
col2.pyplot(fig2)
|
82 |
|
83 |
# Performance metrics
|
84 |
st.markdown("## Performance Metrics")
|
85 |
+
st.markdown("The model achieved the below scores on the test set. Please keep the effect of the sample weights in mind as explained in the Github repository. These reduce for example the R2 score from 0.75 to roughly 0.05. However, despite these low scores, the model is more useful in practice as it provides a meaningful lower bound estimate of the likes to be received as opposed to overestimating every post by up to 1500")
|
86 |
st.dataframe(df_metrics)
|
87 |
|
88 |
# Prediction error plots
|