File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,19 @@ def test_run_forecast_no_ts():
10
10
current_ts = pd .Timestamp .now ()
11
11
12
12
# run gradient boosting model with no ts
13
- predications_df = run_forecast (site = site , model = "gb" )
13
+ predictions_df = run_forecast (site = site , model = "gb" )
14
14
# check current ts agrees with dataset
15
- assert predications_df .index .min () >= current_ts - pd .Timedelta (hours = 1 )
15
+ assert predictions_df .index .min () >= current_ts - pd .Timedelta (hours = 1 )
16
16
17
- print (predications_df )
17
+ print (predictions_df )
18
18
print (f"Current time: { current_ts } " )
19
- print (f"Max: { predications_df ['power_kw' ].max ()} " )
19
+ print (f"Max: { predictions_df ['power_kw' ].max ()} " )
20
20
21
21
# run xgb model with no ts
22
- predications_df = run_forecast (site = site , model = "xgb" )
22
+ predictions_df = run_forecast (site = site , model = "xgb" )
23
23
# check current ts agrees with dataset
24
- assert predications_df .index .min () >= current_ts - pd .Timedelta (hours = 1 )
24
+ assert predictions_df .index .min () >= current_ts - pd .Timedelta (hours = 1 )
25
25
26
- print (predications_df )
26
+ print (predictions_df )
27
27
print (f"Current time: { current_ts } " )
28
- print (f"Max: { predications_df ['power_kw' ].max ()} " )
28
+ print (f"Max: { predictions_df ['power_kw' ].max ()} " )
You can’t perform that action at this time.
0 commit comments