Blauzo
05/09/2024, 10:41 PM*TypeError*: TimeSeriesDataModule.__init__() got an unexpected keyword argument 'config'
. When using the ray backend another error happens as well.
I also tried fitting the model outside of crossvallidation and got this:
*AttributeError*: 'DataFrame' object has no attribute 'temporal_cols'
Not really sure what is going on, I'm running this on anaconda3 in python3.10.4. Any help is appreciated.
This is my code:
windows = (validation_size - horizon + 1) // horizon
cv_results = nf.cross_validation(df, n_windows=windows, step_size=horizon, config = None)
horizon = 12
nf = NeuralForecast(
models=[
AutoNBEATS(h=horizon, num_samples=5, gpus=1, loss=MQLoss(), backend='optuna', alias="NBEATS ray "),
],
freq='h'
)
windows = (validation_size - horizon + 1) // horizon
cv_results = nf.cross_validation(df, n_windows=windows, step_size=horizon, config = None)
José Morales
05/09/2024, 10:45 PMconfig=None
to cross_validation?Blauzo
05/09/2024, 11:01 PMJosé Morales
05/09/2024, 11:01 PMAutoNBEATS
not in the cross_validation
callBlauzo
05/09/2024, 11:20 PMJosé Morales
05/09/2024, 11:27 PMBlauzo
05/09/2024, 11:28 PM*AttributeError*: 'DataFrame' object has no attribute 'temporal_cols'
José Morales
05/09/2024, 11:30 PMBlauzo
05/09/2024, 11:35 PMmodel = AutoNBEATS(h=12, num_samples=5, gpus=1, loss=MQLoss(), backend='optuna', alias="NBEATS ray ")
model.fit(dataset=df)
José Morales
05/09/2024, 11:43 PMBlauzo
05/10/2024, 12:01 AMJosé Morales
05/10/2024, 12:03 AM# Split train/test and declare time series dataset
Y_train_df = Y_df[Y_df.ds<='1959-12-31'] # 132 train
Y_test_df = Y_df[Y_df.ds>'1959-12-31'] # 12 test
dataset, *_ = TimeSeriesDataset.from_df(Y_train_df)
José Morales
05/10/2024, 12:03 AMBlauzo
05/10/2024, 12:08 AM