GithubHelp home page GithubHelp logo

caslab-vt / deeppastl Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 45 KB

Code for DeepPaSTL: Spatio-Temporal Deep Learning Methods for Predicting Long-Term Pasture Terrains using Synthetic Datasets

License: MIT License

Python 100.00%
pasture height prediction bayesian bayesian-inference convlstm pytorch

deeppastl's Introduction

DeepPaSTL: Spatio-Temporal Deep Learning Methods for Predicting Long-Term Pasture Terrains using Synthetic Datasets

Dependencies

  • Install and Setup Anaconda

  • Clone this repository and cd into root folder of the project.

  • Create a new conda environment using the dependency file in the project folder.

conda env create -f environment.yml
  • Activate the environment to run the training or testing scripts.
conda activate ag-bay-torch

Arguments

To Run the predictions for the first time, or using a new dataset please ensure that you have the following arguments enabled:

  • --load_data: Scales and performs necessary pre-processing of the input data for creating final sliding window inputs for the network.

  • --sequence_data: Create sliding windows and stores into a csv file

  • --sequence_to_np: Generates numpy arrays and stores in an hdf5 format, for read on access memory, which can be used directly in the Pytorch DataLoader function.

  • --in_seq_len VALUE: Input Sequence Length. Expects an int value.

  • --out_seq_len VALUE: Output Sequence Length. Expects an int value.

  • --device cpu: To run inference or training on CPU, else default is at cuda.

  • --exp_name MODEL_NAME: Experiment name to load the model during inference, or save the mode as during training.

Prediction/Testing

python main.py --in_seq_len IN_VALUE --out_seq_len OUT_VALUE --load_data --sequence_data --sequence_to_np

Training

python main.py --train_network --in_seq_len IN_VALUE --out_seq_len OUT_VALUE --load_data --sequence_data --sequence_to_np

Output

Output is stored as a MATLAB file in .mat file. Data is stored in the following dictionaries.

  • date: Start date of the first day of the sequence. That is, the first date of the start of the input sequence.
  • y_pred_mean: Mean prediction/inference output from different prediction samples: --n_samples VALUE. Dimension is (batch, out_seq_len, x_dim, y_dim)
  • y_std_mean: Standard Deviation of the prediction/inference output from different prediction samples: --n_samples VALUE. Dimension is (batch, out_seq_len, x_dim, y_dim)
  • y_target: Ground truth/Target values for the predicted output. Dimension is (batch, out_seq_len, x_dim, y_dim)

deeppastl's People

Contributors

murtazarang avatar

Stargazers

 avatar

Watchers

 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.