timeseriesAI / tsai

Time series Timeseries Deep Learning Machine Learning Python Pytorch fastai | State-of-the-art Deep Learning library for Time Series and Sequences in Pytorch / fastai
https://timeseriesai.github.io/tsai/
Apache License 2.0
4.92k stars 622 forks source link

TypeError: __init__() missing 1 required positional argument: 'seq_len' on TSPerceiver model #848

Open flyrainkey opened 8 months ago

flyrainkey commented 8 months ago

`tfms = [None, TSRegression()]

batch_tfms = TSStandardize(by_sample=True, by_var=True)

reg = TSRegressor(X_train, y_train, splits=splits, tfms=tfms, arch="TSPerceiver", batch_tfms=batch_tfms, metrics=mae, train_metrics=True, bs=16)

File "lib/python3.8/site-packages/tsai/tslearner.py", line 154, in init model = build_ts_model(arch, dls=dls, File "/lib/python3.8/site-packages/tsai/models/utils.py", line 200, in build_ts_model model = arch(c_in, c_out, arch_config, kwargs).to(device=device) File "lib/python3.8/site-packages/fastcore/meta.py", line 40, in call res.init(*args,**kwargs)

TypeError: init() missing 1 required positional argument: 'seq_len'`

How to resolve this bug?