tsai icon indicating copy to clipboard operation
tsai copied to clipboard

Cannot save learner in pickle format for Time series classification with Transformer (TST) model

Open TanjinToma opened this issue 2 years ago • 1 comments

learn.save_all(path='export', dls_fname='dls', model_fname='model', learner_fname='learner') The above command shows the following error for the TST model TypeError: cannot pickle 'code' object

TanjinToma avatar Sep 07 '23 02:09 TanjinToma

I have exactly the same problem when using learn.export learn.export(f"./models/{learner_fname}.pkl")

angiebao avatar Mar 26 '24 23:03 angiebao