Bundle Classic AI algorithms: graph search, adversarial game search, optimization and tabular reinforcement learning (-lib ai)
Environment
A tabular RL environment: integer states 0..S-1, integer actions 0..A-1.
Operations
GetNumActions # virtual
Gets the number of actions.
method : public : virtual : GetNumActions() ~ IntReturn
| Type | Description |
|---|---|
| Int | action count |
GetNumStates # virtual
Gets the number of states.
method : public : virtual : GetNumStates() ~ IntReturn
| Type | Description |
|---|---|
| Int | state count |
Reset # virtual
Resets the environment for a new episode.
method : public : virtual : Reset() ~ IntReturn
| Type | Description |
|---|---|
| Int | starting state |
Step # virtual
Takes an action in a state.
method : public : virtual : Step(state:Int, action:Int) ~ System.AI.StepResultParameters
| Name | Type | Description |
|---|---|---|
| state | Int | current state |
| action | Int | action id |
Return
| Type | Description |
|---|---|
| StepResult | transition result |