class Qsa

Overview

The Q(s,a) matrix from the maths supporting q-learning extended with an extra dimension to support two players

Defined in:

qsa.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def get(state, move, player) : QsaValue #

[View source]
def get_qsa_value_indexed_by_player(state, move, player) : QsaValue #

[View source]
def increment_sets #

[View source]
def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def log_adjustment(new_q, old_q) #

[View source]
def mean_adjustments #

[View source]
def qsa : Hash(Int32, Hash(Int32, Hash(Int32, Float32))) #

[View source]
def qsa_non_trivial #

[View source]
def safe_get_move(state, move) : QsaValuesIndexedByPlayer #

[View source]
def safe_get_state(state) : QsaValuesIndexedByMoveAndPlayer #

[View source]
def set(state, move, player, new_q) #

[View source]
def values_count #

[View source]