Class sdm::TabularQValueBackup
Class List > sdm > TabularQValueBackup
#include <tabular_qvalue_backup.hpp>
Inherits the following classes: sdm::QValueBackupInterface
Public Functions
Type | Name |
---|---|
TabularQValueBackup () | |
TabularQValueBackup (std::shared_ptr< ExperienceMemory > experience_memory, std::shared_ptr< QValueFunction<>> q_value_table, std::shared_ptr< QValueFunction<>> target_q_value_table, double discount) | |
virtual std::shared_ptr< Action > | getGreedyAction (const std::shared_ptr< State > & state, number t) |
virtual double | getValueAt (const std::shared_ptr< State > & state, number t) |
virtual double | update (number t) |
virtual | ~TabularQValueBackup () |
Public Functions inherited from sdm::QValueBackupInterface
See sdm::QValueBackupInterface
Type | Name |
---|---|
virtual std::shared_ptr< Action > | getGreedyAction (const std::shared_ptr< State > & state, number t) = 0 |
virtual double | getValueAt (const std::shared_ptr< State > & state, number t) = 0 |
virtual double | update (number t) = 0 |
Protected Attributes
Type | Name |
---|---|
double | discount_ |
std::shared_ptr< ExperienceMemory > | experience_memory_ |
std::shared_ptr< QValueFunction<> > | q_value_table_ |
std::shared_ptr< QValueFunction<> > | target_q_value_table_ |
Public Functions Documentation
function TabularQValueBackup [1/2]
sdm::TabularQValueBackup::TabularQValueBackup ()
function TabularQValueBackup [2/2]
sdm::TabularQValueBackup::TabularQValueBackup (
std::shared_ptr< ExperienceMemory > experience_memory,
std::shared_ptr< QValueFunction <>> q_value_table,
std::shared_ptr< QValueFunction <>> target_q_value_table,
double discount
)
function getGreedyAction
virtual std::shared_ptr< Action > sdm::TabularQValueBackup::getGreedyAction (
const std::shared_ptr< State > & state,
number t
)
Parameters:
const
std::shared_ptr<State>& state : current statenumber
t : time step
Returns:
Implements sdm::QValueBackupInterface::getGreedyAction
function getValueAt
virtual double sdm::TabularQValueBackup::getValueAt (
const std::shared_ptr< State > & state,
number t
)
Parameters:
const
std::shared_ptr<State>& state : current statenumber
t : time step
Returns:
Implements sdm::QValueBackupInterface::getValueAt
function update
virtual double sdm::TabularQValueBackup::update (
number t
)
Parameters:
number
t : time step
Returns:
Implements sdm::QValueBackupInterface::update
function ~TabularQValueBackup
virtual sdm::TabularQValueBackup::~TabularQValueBackup ()
Protected Attributes Documentation
variable discount_
double sdm::TabularQValueBackup::discount_;
variable experience_memory_
std::shared_ptr<ExperienceMemory> sdm::TabularQValueBackup::experience_memory_;
variable q_value_table_
std::shared_ptr<QValueFunction<> > sdm::TabularQValueBackup::q_value_table_;
variable target_q_value_table_
std::shared_ptr<QValueFunction<> > sdm::TabularQValueBackup::target_q_value_table_;
The documentation for this class was generated from the following file src/sdm/utils/value_function/backup/tabular_qvalue_backup.hpp