val make :
?rate:float ->
?discount:float ->
?explore:float ->
?seed:int ->
unit ->
('state, 'action) tval value : ('state, 'action) t -> 'state -> 'action -> floatval best : ('state, 'action) t -> 'state -> 'action list -> 'action optionval choose : ('state, 'action) t -> 'state -> 'action list -> 'action optionval learn :
('state, 'action) t ->
state:'state ->
action:'action ->
reward:float ->
next:'state ->
next_actions:'action list ->
unittype ('state, 'action) world = {actions : 'state -> 'action list;step : 'state -> 'action -> 'state * float;over : 'state -> bool;
}val episode :
?limit:int ->
('state, 'action) t ->
('state, 'action) world ->
'state ->
floatval greedy_run :
?limit:int ->
('state, 'action) t ->
('state, 'action) world ->
'state ->
float * 'state listval known : ('state, 'action) t -> intval values :
('state, 'action) t ->
'state ->
'action list ->
('action * float) list