Spaces:
Sleeping
Sleeping
Shafeek Saleem
commited on
Commit
·
289ef57
1
Parent(s):
c532c54
ss
Browse files
pages/3_Training the Model.py
CHANGED
@@ -70,12 +70,6 @@ def create_model_inputs(data, lag, mean_period, target_variable):
|
|
70 |
|
71 |
def show_output(y_test, y_pred, target_variable_name):
|
72 |
st.subheader("Model Performance")
|
73 |
-
st.dataframe(y_test)
|
74 |
-
missing_percentage = (y_test.isna().mean() * 100).round(2)
|
75 |
-
st.write(missing_percentage)
|
76 |
-
st.dataframe(y_pred)
|
77 |
-
missing_percentage = (y_pred.isna().mean() * 100).round(2)
|
78 |
-
st.write(missing_percentage)
|
79 |
st.write(f"Test R2 score: {r2_score(y_test, y_pred):.2f}")
|
80 |
|
81 |
fig, axs = plt.subplots(3, figsize=(12, 18))
|
|
|
70 |
|
71 |
def show_output(y_test, y_pred, target_variable_name):
|
72 |
st.subheader("Model Performance")
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
st.write(f"Test R2 score: {r2_score(y_test, y_pred):.2f}")
|
74 |
|
75 |
fig, axs = plt.subplots(3, figsize=(12, 18))
|