shreyk31 commited on
Commit
d344c88
·
verified ·
1 Parent(s): ffcec24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -237,7 +237,7 @@ if app_page == 'Prediction & Feature Importance':
237
 
238
  st.line_chart(fp_pred, x='ds', y='trend')
239
 
240
- st.write("Predictions between 2020 and 2024")
241
  df2 = df2[(df2['ds'] >= "1992-01-15 00:00:00") & (df2['ds'] <= "2020-01-15 00:00:00")]
242
 
243
  df_fp = pd.concat([df2['ds'], df2['Fed Effective Funds Rate']], axis=1)
@@ -251,12 +251,9 @@ if app_page == 'Prediction & Feature Importance':
251
  fp_pred = fp_model.predict(future)
252
  chart_fp_pred = fp_pred
253
  fp_pred = fp_pred[["ds","trend"]]
254
-
255
-
256
  st.dataframe(fp_pred)
257
 
258
- st.line_chart(fp_pred, x='ds', y='trend')
259
-
260
  # Extract seasonality components
261
  fig = fp_model.plot_components(chart_fp_pred)
262
 
 
237
 
238
  st.line_chart(fp_pred, x='ds', y='trend')
239
 
240
+ st.write("Time Series Predictions between 2020 and 2024")
241
  df2 = df2[(df2['ds'] >= "1992-01-15 00:00:00") & (df2['ds'] <= "2020-01-15 00:00:00")]
242
 
243
  df_fp = pd.concat([df2['ds'], df2['Fed Effective Funds Rate']], axis=1)
 
251
  fp_pred = fp_model.predict(future)
252
  chart_fp_pred = fp_pred
253
  fp_pred = fp_pred[["ds","trend"]]
254
+ fp_pred = fp_pred[fp_pred['ds'] > "2020-01-15 00:00:00"]
 
255
  st.dataframe(fp_pred)
256
 
 
 
257
  # Extract seasonality components
258
  fig = fp_model.plot_components(chart_fp_pred)
259