Skip to content

Commit

Permalink
Merge pull request #8 from asapdiscovery/add_plots
Browse files Browse the repository at this point in the history
Add plots
  • Loading branch information
hmacdope authored Oct 7, 2024
2 parents b1caff4 + 24b1104 commit ed353d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,16 @@ def convert_df(df):
preds = predictions[:, 0]
err = predictions[:, 1] # rejoin with the original dataframe

# check if the model has a plot prepared
plot_url = model.pull_plot("test_performance.png", return_as="url")

if plot_url:
# we are showing the latest test set performance plot
st.markdown("### Model test set performance")
st.markdown(
f"Below is the latest test set performance plot for the model `{model.name}`."
)
st.image(plot_url)

pred_column_name = f"{_target_str}_computed-{endpoint_value}"
unc_column_name = f"{_target_str}_computed-{endpoint_value}_uncertainty"
Expand Down

0 comments on commit ed353d6

Please sign in to comment.