thanks I really like tsai!
I donāt know if I shared this before. a while ago I did a small PR for fastaiās xresnets to support Conv1d and Conv3d - so you can easily use xresnets with tsai :). I did some testing with different datasets and xresnets actually worked pretty well on the standard time series datasets (on par with inception time - sometimes even better).
model = xresnet34(ndim=1, c_in=dls.vars, n_out=dls.c, ks=3)
ndim: dimensions of the input (1=Conv1d, 2=Conv2d, 3=Conv3d)
ks: kernelsize - default 3, depending on the dataset I used kernel sizes up to 31
drop in replacement for InceptionTime:
dsid = 'NATOPS'
X, y, splits = get_UCR_data(dsid, return_split=False)
tfms = [None, [Categorize()]]
dsets = TSDatasets(X, y, tfms=tfms, splits=splits, inplace=True)
dls = TSDataLoaders.from_dsets(dsets.train, dsets.valid, bs=[64, 128], batch_tfms=[TSStandardize()], num_workers=0)
model = xresnet34(ndim=1, c_in=dls.vars, n_out=dls.c)
learn = Learner(dls, model, metrics=accuracy)
learn.fit_one_cycle(25, lr_max=1e-2)
learn.plot_metrics()
For the NATOPS dataset the best result I got was 96% with xresnet34, ks=3 and lr=1e-2 (but thereās quite a bit of variance). Maybe thatās interesting for some of you.