Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Run = 0
Functions ¶
This section is empty.
Types ¶
type AttributeMap ¶
type AttributeMap map[string]*json.RawMessage
func (AttributeMap) Copy ¶
func (am AttributeMap) Copy() AttributeMap
func (AttributeMap) String ¶
func (am AttributeMap) String() string
type AttributeMapAttr ¶
type AttributeMapAttr map[string]*rlglue.Attributes
type Config ¶
type Config struct {
EnvironmentName string `json:"environment-name"`
AgentName string `json:"agent-name"`
Environment rlglue.Attributes `json:"environment-settings"`
Agent rlglue.Attributes `json:"agent-settings"`
Experiment `json:"experiment-settings"`
StateWrappers rlglue.Attributes `json:"state-wrappers"`
WrapperNames []string
// contains filtered or unexported fields
}
func Parse ¶
func Parse(data json.RawMessage) ([]Config, error)
Parse parses a json.RawMessage. If the input is a JSON array, then that array as parsed as an array of config objects. Otherwise, it's parsed as a single config object.
func (Config) SweptAttrCount ¶
func (Config) SweptAttributes ¶
func (conf Config) SweptAttributes(idx int) ([]rlglue.Attributes, error)
type Experiment ¶
type Experiment struct {
MaxEpisodes int `json:"episodes"`
MaxSteps int `json:"steps"`
DebugInterval int `json:"debug-interval"`
DataPath string `json:"data-path"`
ShouldLogTraces bool `json:"should-log-traces"`
CacheTracesInRAM bool `json:"cache-traces-in-ram"`
ShouldLogEpisodeLengths bool `json:"should-log-episode-lengths"`
// MaxCPUs, if set, specifies the maximum number of CPUs this experiment is allowed to use
MaxCPUs int `json:"max-cpus"`
}
func (*Experiment) SetToDefault ¶
func (set *Experiment) SetToDefault()
Click to show internal directories.
Click to hide internal directories.