class Policy::QLearning
- Policy::QLearning
- Policy::Base
- Reference
- Object
Defined in:
policy/q_learning.crConstructors
Class Method Summary
Instance Method Summary
- #choose_exploiting_move(board, player, moves)
- #choose_exploring_move(board, player, moves)
- #discount : Float64
- #discount=(discount : Float64)
- #explore_percent : Int32
- #explore_percent=(explore_percent : Int32)
-
#inspect
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
- #learning_rate : Float64
- #learning_rate=(learning_rate : Float64)
- #play(board, as_player)
- #play_best(board, as_player)
- #qsa : Qsa
Instance methods inherited from class Policy::Base
chosen_move(_board, _player, _moves)
chosen_move,
move_options(board)
move_options,
play(board, as_player)
play,
play_best(*args)
play_best
Constructor Detail
Class Method Detail
Instance Method Detail
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
.