Spaces:
Sleeping
Sleeping
Commit
·
8155aa5
1
Parent(s):
3faa322
Update app.py
Browse files
app.py
CHANGED
@@ -13,8 +13,12 @@ df = df.rename(columns={"Date": "ds", "Price": "y"})
|
|
13 |
df.fillna(method='ffill', inplace=True)
|
14 |
df.dropna(inplace=True)
|
15 |
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
18 |
|
19 |
m = CustomNeuralProphet(
|
20 |
n_forecasts=30,
|
|
|
13 |
df.fillna(method='ffill', inplace=True)
|
14 |
df.dropna(inplace=True)
|
15 |
|
16 |
+
def lr_scheduler_step(self, epoch, batch_idx, optimizer):
|
17 |
+
# Get the OneCycleLR scheduler
|
18 |
+
scheduler = self.optimizers[0].scheduler
|
19 |
+
|
20 |
+
# Call the `step` method on the scheduler
|
21 |
+
scheduler.step()
|
22 |
|
23 |
m = CustomNeuralProphet(
|
24 |
n_forecasts=30,
|