Coder Social home page Coder Social logo

aswathyrk93 / lamp_code Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.45 MB

Contains code for Adaptive protection platform in Smart grids

Python 36.49% Jupyter Notebook 63.51%
1d-cnn cnn-keras fault-classification fault-detection gaussian-processes gpytorch sklearn smartgrid svm-classifier unsupervised-learning

lamp_code's Introduction

LAMP_CODE DESCRIPTION

There are 4 folders in this reposiory:

DATA : Contains the sample data for each configuration and also the train data that will be used for re-initializing the GP model.

MODELS:

Contains all the models that were trained offline. The names of the models are self-explanatory of the configuration and the algorithm that was used for its training. Includes the maximum and the minimum values that is used for normalization in case of GP+OCSVM and SVM classifiers. These models are loaded in test set up

Test_python:

The folder contains the 9 test codes. Each code is for a particular algorithm:

  • CNN_TEST.py : tests the CNN block for classifying the configurations.
  • Fault_Classifier_testC1.py : Tests the SVM model trained using data of Configuration 1. Similarly there are 3 more files for each of the configurations.
  • GP_OCSVM_TEST_C1.py: Tests the GP_OCSVM model trained using data of configuration 1. Similary there are 3 more files for each of the configurations.
  • microgrid_reading.py: Reads all the data using modbus and passes them to the above test files for performing the fina computation of probabilities.

The main code here is the "microgrid_reading.py" which reads the data from client and processes them through all the models in "MODELS" folder and computes the final output to display them.

Train:

contains ipynb files for training all the algorithms: CNN (for topology estimation), GP+OCSVM (fault detection), SVM (fault classification) The train data needs to be accessed from outside. These files were trained using a huge file called 'RTL3.mat" which had data corresponding to all the configuration. These data is used for training all the algorithms. The folder contains 6 files:

  • CNN1D_train_Save: trains the CNN model and saves the model in ".h5" format.
  • Fault_classifier_trainC1: trains the fault classifier using SVM for configuration 1 and saves the corresponding model. Similarly we have fault classifier training models for the other three configurations
  • GP_OCSVM_train: THIS FILE IS IMPORTANT. This mode needs to RETRAINED most frequently. EVERY other day. This is unsupervised block and it trains on the input data and saves all three GP models and OCSVM model

INSTALL ALL DEPENDENCIES

Added pip install requirements for the git. To install the dependencies type:

'pip install -r requirements.txt'

lamp_code's People

Contributors

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