Giter Site home page Giter Site logo

algorithm-qlearning's Introduction

NAME

Algorithm::QLearning - Reinforcement Learning done in Pure Perl

DESCRIPTION

Algorithm::QLearning is a base class for implementations of Q-Learning based algorithms written in Pure Perl, have a look at Algorithm::QLearning::NFQ for a Neural Network implementation.

ATTRIBUTES

discount_factor

Defaults to 0.5, it's the discount factor of the Q-Learning function.

learning_rate

Defaults to 1, it's the learning rate of the Q-Learning function.

epsilon

Defaults to 0.1, it's the probability to choose a random path

actions

List of actions of the system (needed if your environment doesn't send the best possible volue for the agent, this enables the automatic search of the best possible value for the next state)

[1,2,3,4]

METHODS

qfunc

Returns the qvalue of the Q-Learning function.

Takes as input: current status, current action, environment result status, environment reward, [best_possible value for next state, optional]

egreedy

Return the new picked action, based on the epsilon specified, and the given actions

_bpv

Represent the best possible value, it's internal

LICENSE

Copyright (C) mudler.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

mudler [email protected]

algorithm-qlearning's People

Contributors

mudler avatar

Stargazers

 avatar

Watchers

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