Elements
Namespace: E2E.Decision
public static class ElementsUpstream’s elements.ts. Its free functions live here as members (the class carries the module’s name, as Model and Budget do).
Inheritance: object
Methods
Section titled “Methods”ActionSpace(StepExecutorContext, SpaceObservation, bool)
Section titled “ActionSpace(StepExecutorContext, SpaceObservation, bool)”public static ActionSpace ActionSpace(StepExecutorContext ctx, SpaceObservation observation, bool canType)Upstream’s actionSpace. Builds the element table and bound targets from the newest observation.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
StepExecutorContext | |
observation |
SpaceObservation | |
canType |
bool |
Returns: ActionSpace
TargetKeyIndex(string)
Section titled “TargetKeyIndex(string)”public static string TargetKeyIndex(string key)Upstream’s targetKeyIndex. Element index behind a target key (7 for both 7 and 7:2).
Parameters
| Name | Type | Description |
|---|---|---|
key |
string |
Returns: string