资源算法deep-forecast-pytorch

deep-forecast-pytorch

2019-09-18 | |  104 |   0 |   0

Implementation of Deep-Forecast using PyTorch

Setup

  • Clone this repository : git clone https://github.com/Wizaron/deep-forecast-pytorch.git

  • Download and install Anaconda or Miniconda

  • Go to the "reseg-pytorch/code/pytorch" : cd reseg-pytorch/code/pytorch

  • Create environment : conda env create -f conda_environment.yml

  • Activate environment : source activate deep-forecast-pytorch

Code Structure

  • "data" : Stores data and scripts to prepare dataset for training.

  • "lib" : Stores miscellaneous scripts for training and testing.

    • "arch.py" : Defines network architecture

    • "model.py" : Defines model (Minibatching mechanism, optimization, criterion, fit, predict, etc.)

    • "prediction.py" : Metrics and plots to evaluate the performance of the trained model

    • "data.py" : Creates training, validation and testings datasets

    • "loader.py" : Creates Dataset loader for PyTorch

  • "train.py" : Main training script.

  • "test.py" : Main testing script.

  • "settings.py" : Defines hyper-parameters of the model.

Data

  • Data is downloaded from IEM

  • Download data and save it under "data/raw"

  • To prepare dataset, run the scripts in "data/scripts"

Training and Testing

  • Train : python train.py --data [PATH OF PREPARED DATASET]

  • Test : python test.py --data [PATH OF PREPARED DATASET] --model [PATH OF THE SAVED MODEL]

  • For more info : python train.py --helppython test.py --help

train.py

  • It saves models and logs under "models"

  • At the end of the training, it saves predictions under "outputs"

test.py

  • It saves predictions under the directory of the model.

Sample Outputs

3.png2.png1.png0.png


上一篇:nmn-pytorch

下一篇:transducer

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...