Coder Social home page Coder Social logo

hem-deeprl-v2-1's Introduction

Home Energy Management Model.

This file provides instructions to run the model.

Description

This model is an implementation of Deep Q learning for the purpose of Home Energy Management.

Requirements

Python

You need Python to run the model.

In Ubuntu, Mint and Debian you can install Python 3 like this:

$ sudo apt-get install python3 python3-pip

Dependencies

Some of the dependencies required to run the code, and some info about the environment (e.g., reward, actions, etc.).

  • tensorflow (>= 2.3)
  • numpy
  • Pandas
  • matplotlib

Use the package manager pip to install them.

C:\Project_PATH>pip install tensorflow
C:\Project_PATH>pip install numpy
C:\Project_PATH>pip install Pandas
C:\Project_PATH>pip install matplotlib

Usage

There are 3 simple command line interface to run the code for training, testing and ploting:

- Train a new model (this will save the model only at the end of the training):

C:\Project_PATH>python main.py -train_model <number_of_Episodes>

note that 300 Episodes should be enough.

- Test a trained model (I've already provided a trained model in the "trained_models" folder)

C:\Project_PATH>python main.py -test_model

- Data plotting of the trained model:

You can plot one of the graphs: "money_spent", "battery_charge", "reward_function"

1- Output ( Money spent):

C:\Project_PATH>python main.py -plot_graph money_spent

alt text

2- Output ( Battery charge):

C:\Project_PATH>python main.py -plot_graph battery_charge

alt text

3- Output ( Reward function):

C:\Project_PATH>python main.py -plot_graph reward_function

alt text

4- Output ( Demans):

C:\Project_PATH>python main.py -plot_graph demands

alt text

5- Output ( Generation):

C:\Project_PATH>python main.py -plot_graph generation

alt text

License

hem-deeprl-v2-1's People

Contributors

wagdi-dev avatar

Stargazers

 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.