I was actually trying to do exactly the same. Thanks for being so thoughtful and sharing your codes.
Thanks for the code snippets. I am working on a similar problem to handle COVID lockdown retail consumer data - training on pre-lockdown and then fine-tuning on post-lockdown data. The problem I have is that not only was there a huge gap in the data during the lockdown, but the customers’ behaviour appears to have changed post-lockdown. I don’t want to throw away all the data from pre-lockdown so I thought transfer learning might be appropriate here. Do you have any update on the above code for fastai2? Or any advance on methods that you could share? I’m pretty new to fastai, and have been using XGBoost mostly since becoming a DS, so learning what I can from you guys
Thanks for sharing the code, what is expected from the cat parameter? I am not sure what to add.