GithubHelp home page GithubHelp logo

Comments (4)

vivekugale9887 avatar vivekugale9887 commented on August 23, 2024

I have a model which is trained on stock data of one company and I want to retrain that model again on stock data of another company? Is it possible using PatchTST & if yes, please guide me how to do it.

from patchtst.

ikvision avatar ikvision commented on August 23, 2024

@vivekugale9887 I adopted PatchTST on my dataset, most of the work is adding a dataloader.

  1. You would need to create a new class of type Dataset.
  2. Implement a read_data method like
  3. implement a getitem method like
    def __getitem__(self, index):
  4. Add your new class to the data factory

from patchtst.

yuqinie98 avatar yuqinie98 commented on August 23, 2024

Hi @ikvision Thanks very much for answering this in details! Besides I would like to address a few more thoughts:

  1. Make your dataset csv in the same format and location of the sample datasets as described in readme file.
  2. For your setting I supposed that it is similar to transfer learning which is in table 5 of the paper. PatchTST can do it, and what you need to do is a 2-step process: self-supervised training on one dataset and fine-tune on the other one.
  3. Although it is doable, we do not recommend going with financial dataset at this time point because of the reason we mentioned in appendix A.1.1.

from patchtst.

vivekugale9887 avatar vivekugale9887 commented on August 23, 2024

hi @ikvision , thank you for the quick reply. I am yet to try what you suggested to me. While searching for the incremental learning, I came across this notebook and am using the way it has mentioned the incremental learning.

https://github.com/timeseriesAI/tsai/blob/main/tutorial_nbs/14_Inference_Partial_Fit_and_Fine_Tune.ipynb

from patchtst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.