Code Monkey home page Code Monkey logo

seed's Introduction

Preliminaries

Experiments were executed in an Anaconda 3 environment with Python 3.8.3. The following will create an Anaconda environment and install the requisite packages for the project.

conda create --name seed python=3.8.3
conda activate seed
conda install pytorch==1.11.0 torchvision==0.12.0 cudatoolkit=10.2 -c pytorch
python -m pip install -r requirements.txt

Files organization

Download the datasets from here and upzip the files in the data_provider directory. You should now have a data_provider/datasets directory containing 4 stream sensor (file names end with _S_fixed.csv) and 4 rain sensor (file names end with _R_fixed.csv) datasets.

Use parameter '--val_size' to set the number of randomly sampled validation points which will be used in the training process.

Use parameter '--train_volume' to set the number of randomly sampled validation points which will be used in the training process.

Use parameter '--sub_mean_threshold' to set the threshold which will be used in the sample-wise oversampling process.

Use parameter '--times' to set the step size which will be used in the sample-wise oversampling process.

Refer to the annotations in 'options.py' for other parameters setting.

Training mode

run 'main.ipynb' with model.train()

Inference mode

The inference has already been included in 'main.ipynb'. You can also run 'main.ipynb' without model.train() for inferencing only.

Future improvement

As can be seen, the code has not been cleaned up for "production" due to lack of time. It includes some parameters that were used in other projects. This will be improved when time allows.

seed's People

Contributors

davidanastasiu 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.