Shafeek Saleem commited on
Commit
9fdbc31
·
1 Parent(s): 38d6054
Files changed (1) hide show
  1. pages/3_Training the Model.py +6 -0
pages/3_Training the Model.py CHANGED
@@ -67,6 +67,12 @@ def create_model_inputs(data, lag, mean_period, target_variable):
67
 
68
  def show_output(y_test, y_pred, target_variable_name):
69
  st.subheader("Model Performance")
 
 
 
 
 
 
70
  st.write(f"Test R2 score: {r2_score(y_test, y_pred):.2f}")
71
 
72
  fig, axs = plt.subplots(3, figsize=(12, 18))
 
67
 
68
  def show_output(y_test, y_pred, target_variable_name):
69
  st.subheader("Model Performance")
70
+ st.dataframe(y_test)
71
+ missing_percentage = (y_test.isna().mean() * 100).round(2)
72
+ st.write(missing_percentage)
73
+ st.dataframe(y_pred)
74
+ missing_percentage = (y_pred.isna().mean() * 100).round(2)
75
+ st.write(missing_percentage)
76
  st.write(f"Test R2 score: {r2_score(y_test, y_pred):.2f}")
77
 
78
  fig, axs = plt.subplots(3, figsize=(12, 18))