Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import numpy as np
|
|
8 |
config = TimeSeriesTransformerConfig.from_pretrained("google/timesfm-2.0-500m-pytorch")
|
9 |
config.prediction_length = 3
|
10 |
config.context_length = 12
|
11 |
-
config.lags_sequence = [1, 2, 3, 4, 5, 6] # Ajuste os lags para serem menores
|
12 |
|
13 |
# Carregar modelo com a configuração ajustada
|
14 |
model = TimeSeriesTransformerForPrediction.from_pretrained(
|
|
|
8 |
config = TimeSeriesTransformerConfig.from_pretrained("google/timesfm-2.0-500m-pytorch")
|
9 |
config.prediction_length = 3
|
10 |
config.context_length = 12
|
11 |
+
config.lags_sequence = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] # Ajuste os lags para serem menores ou iguais ao context_length
|
12 |
|
13 |
# Carregar modelo com a configuração ajustada
|
14 |
model = TimeSeriesTransformerForPrediction.from_pretrained(
|