Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Demo ¶ added in v0.5.0
Demo records one documentation clip without opening a window. It wires the environment exactly as the matching command does, then hands the run to the software renderer, so the media matches what a player sees and needs no display.
Environments that must learn before there is anything to watch — cube trains a policy, chess evolves a population — do that first, so a clip can take a while.
Types ¶
type DemoSpec ¶ added in v0.5.0
type DemoSpec struct {
// Env names the environment: race, cartpole, maze, cube, flappy or chess.
Env string
// Agent overrides the environment's default agent when set.
Agent string
// Opponent overrides the chess opponent when set; other environments
// ignore it.
Opponent string
// Seed makes the run reproducible.
Seed int64
// Rec says where to write the recording and how long it runs.
Rec record.Options
}
DemoSpec is one documentation clip: which environment to wire up, which agent drives it, and the seed that makes the run reproducible. Everything else — population sizes, episode lengths, training budgets — comes from the same defaults the command registers, so the media shows what a reader gets by running the command.