Coder Social home page Coder Social logo

informer_chinesenotes's Introduction

informer_ChineseNotes

Python 3.7 PyTorch LTS cudatoolkit 11.1

informer_ChineseNotes has added Chinese annotations and some visual additions to the informer2020 project.

使用场景

  • 时间序列预测
  • 股票预测
  • 市场预测
  • 电力预测
  • 天气预测
  • ....

Requirements

  • torch_lts
  • pyecharts
  • Python 3.7
  • matplotlib
  • numpy == 1.19.4
  • pandas
  • scikit_learn
  • xlrd
  • ....

You can install it directly from the environment pack version file:

pip install -r requirements.txt
or
conda env create -f torch_lts.yaml

Quick Configuration Environment

Method 1:

Create a virtual environment in Anaconda Powershell Prompt (Anaconda3) :

conda create -n torch_lts python=3.7

Then enter the virtual environment:

activate torch_lts

Finally, install the environment dependency package using the requirements. TXT file:

pip install -r requirements.txt

Method 2

Create virtual environments and install dependencies using conda and YAMl files directly from Anaconda Powershell Prompt (Anaconda3) :

conda env create -f torch_lts.yaml

Method 3

Execute the following commands directly in your environment to install:

conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c conda-forge

pip install numpy == 1.19.4
pip install pyecharts
pip install xlrd
pip install openpyxl
pip install matplotlib
pip install pandas

Import virtual environment in PyCharm:

When selecting the interpreter, do not create a new virtual environment and use the virtual environment you already created: image

FAQ

If you run into a problem like RuntimeError: The size of tensor a (98) must match the size of tensor b (96) at non-singleton dimension 1, you can check torch version or modify code about Conv1d of TokenEmbedding in models/embed.py as the way of circular padding mode in Conv1d changed in different torch versions.

Interesting and useful tool recommendations

Thank you

  • Thanks to @zhouhaoyi open source algorithm paper and code repository.

reference

Tips

数据是网上找来的,已做脱敏处理,如有冒犯到您的请联系e-mail或者从Tony's blog中私聊我侵删。

To contact me

informer_chinesenotes's People

Contributors

tonyeinstein avatar

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.