프로젝트
GitHub에서 보기
ki-ljl/LSTM-Load-Forecasting
소개
Implementation of Electric Load Forecasting Based on LSTM(BiLSTM). Including Univariate-SingleStep forecasting, Multivariate-SingleStep forecasting and Multivariate-MultiStep forecasting.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalLSTM-Load-Forecasting
Implementation of Electric Load Forecasting Based on LSTM(BiLSTM). Including Univariate-SingleStep forecasting, Multivariate-SingleStep forecasting and Multivariate-MultiStep forecasting.
Environment
pytorch==1.10.1+cu111
numpy==1.18.5
pandas==1.2.3
Tree
.
│ args.py
│ data_process.py
│ LICENSE
│ models.py
│ README.md
│ tree.txt
│ util.py
│
├─data
│ data.csv
│
├─LSTMs
│ multivariate_multi_step.py
│ multivariate_single_step.py
│ univariate_single_step.py
│
└─models
multivariate_multi_step.pkl
multivariate_single_step.pkl
univariate_single_step.pkl
- args.py is a parameter configuration file, where you can set model parameters and training parameters.
- data_process.py is the data processing file. If you need to use your own data, then you can modify the load_data function in data_process.py.
- Two models are defined in models.py, including LSTM and bidirectional LSTM.
- util.py defines the training and testing functions of the models in the three prediction methods.
- The trained model is saved in the models folder, which can be used directly for testing.
- Data files in csv format are saved under the data file.
Usage
First switch the working path:
cd LSTMs/
Then, execute in sequence:
python multivariate_multi_step.py --epochs 50 --batch_size 30
python multivariate_single_step.py --epochs 30 --batch_size 30
python univariate_single_step.py --epochs 30 --batch_size 30
If you need to change the parameters, please modify them manually in args.py.
Result

관련 프로젝트 살펴보기
불러오는 중…