C# Class numl.Reinforcement.QLearning.QLearnerModel

A Q-Learner Model.
Inheritance: ReinforcementModel
Show file Open project: sethjuarez/numl

Public Methods

Method Description
Learn ( Vector x1, double y, Vector x2, double r ) : void

Updates the Q-Learner model by reinforcing with the new state/action and transition state feedback values.

Learn ( Vector x, double y, double r ) : void

Updates the Q-Learner model by reinforcing with the new state/action feedback values.

Predict ( Vector y ) : double

Predicts the best action for the current state.

QLearnerModel ( ) : System

Initializes a new Q-Learner model.

Method Details

Learn() public method

Updates the Q-Learner model by reinforcing with the new state/action and transition state feedback values.
public Learn ( Vector x1, double y, Vector x2, double r ) : void
x1 numl.Math.LinearAlgebra.Vector Item features, i.e. the original State.
y double Action label.
x2 numl.Math.LinearAlgebra.Vector Transition state value.
r double Reward value.
return void

Learn() public method

Updates the Q-Learner model by reinforcing with the new state/action feedback values.
public Learn ( Vector x, double y, double r ) : void
x numl.Math.LinearAlgebra.Vector State vector.
y double Action label.
r double Reward value.
return void

Predict() public method

Predicts the best action for the current state.
public Predict ( Vector y ) : double
y numl.Math.LinearAlgebra.Vector
return double

QLearnerModel() public method

Initializes a new Q-Learner model.
public QLearnerModel ( ) : System
return System