seldonian.RL.Agents.Function_Approximators.Table.Table¶
- class Table(min_state, num_states)¶
Bases:
Function_Approximator
- __init__(min_state, num_states)¶
Table holding states, capable of reindexing states
- Parameters:
min_state (int) – The smallest obs number
num_states (int) – Number of total states
- __repr__()¶
Return repr(self).
Methods
- from_environment_state_to_0_indexed_state(env_state)¶
Convert environment obs to 0 indexed obs in the table
- Parameters:
env_state – The environment obs you want to convert
- Returns:
0-indexed obs in the table
- set_new_params(new_params)¶
Set the new model parameter weights