Giter VIP home page Giter VIP logo

powersystem_riskassessment's Introduction

PowerSystem_RiskAssessment

Welcome to the project for the course-" Machine Learning for Energy System Applications". Workflow on an energy systems application of risk assessment – Data pre-processing, standardization, normalization. – Feature selection – Model selection and training

Workflow

Data pre-processing (feature_engineering.py)

The data pre-processing consists of three sub tasks:

  • Feature removal based on variance
  • Create 'reduction' dataset for both regression and classification task
  • Create 'statistical' dataset for both regression and classification task

Regression (regression.py)

The following tasks are performed under this:

  • Compare the following models performance based on default parameters
    • Lasso regression
    • Ridge regression
    • SVR- linear
    • SVR- polynomial
    • SVR- gaussian
    • Deep neural network
  • Grid search hyper parameter for the best chosen model (Neural network model)
    • This task is done for each type of dataset
  • Classify risk state based on risk factor predicted by the regression model

Classification (classification.py)

The following tasks are performed under this: Calling the classification pipeline function does everything

  • If Choose model is said to True:

    • When calling the classification pipeline function:
    • specify the dataset type to be read
    • specify the chosen model
    • Choose and fine tune any of the models:
      • SVC- Linear
      • SVC- Polynomial
      • SVC-RBF
      • Random Forests Classifier
      • Extreme Trees Classifier
      • MLP Neural Network
    • Get the validation accuracy, and test accuracy, per class precision, recall and f1 score for the fine-tuned model, also get the trained model
  • If Choose model is said to False:

    • When calling the classification pipeline function:
    • specify the hyperparameters dictionary with the final chosen hyperparameters
    • specify the dataset type to be read
    • specify the chosen model
    • The final model of type 'x' is chosen and the test results are printed, the trained model is returned

How to run the files?

  • Download everything as submitted into a single folder
  • Go to 'main.py' file
  • Depending on the task un comment and run the pipeline functions.

powersystem_riskassessment's People

Contributors

nkpanda97 avatar

Stargazers

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