Versions in this module Expand all Collapse all v2 v2.8.7 Jul 26, 2021 v2.8.6 Jul 26, 2021 v2.8.5 Jul 23, 2021 v2.8.4 Jul 23, 2021 v2.8.3 Jul 23, 2021 Changes in this version + func OutDirForTrial(outDir string, trialID int) string + type Experiment struct + Id int + MaxFitnessScore float64 + Name string + RandSeed int64 + func (e *Experiment) AvgEpochDuration() time.Duration + func (e *Experiment) AvgGenerationsPerTrial() float64 + func (e *Experiment) AvgTrialDuration() time.Duration + func (e *Experiment) AvgWinner() (avgNodes, avgGenes, avgEvals, avgDiversity float64) + func (e *Experiment) BestAge() Floats + func (e *Experiment) BestComplexity() Floats + func (e *Experiment) BestFitness() Floats + func (e *Experiment) BestOrganism(onlySolvers bool) (*genetics.Organism, int, bool) + func (e *Experiment) Decode(dec *gob.Decoder) error + func (e *Experiment) Diversity() Floats + func (e *Experiment) EfficiencyScore() float64 + func (e *Experiment) Encode(enc *gob.Encoder) error + func (e *Experiment) EpochsPerTrial() Floats + func (e *Experiment) Execute(ctx context.Context, startGenome *genetics.Genome, ...) error + func (e *Experiment) MostRecentTrialEvalTime() time.Time + func (e *Experiment) PrintStatistics() + func (e *Experiment) Read(r io.Reader) error + func (e *Experiment) Solved() bool + func (e *Experiment) SuccessRate() float64 + func (e *Experiment) TrialsSolved() int + func (e *Experiment) Write(w io.Writer) error + func (e *Experiment) WriteNPZ(w io.Writer) error + type Experiments []Experiment + func (es Experiments) Len() int + func (es Experiments) Less(i, j int) bool + func (es Experiments) Swap(i, j int) + type Floats []float64 + func (x Floats) Max() float64 + func (x Floats) Mean() float64 + func (x Floats) MeanVariance() []float64 + func (x Floats) Median() float64 + func (x Floats) Min() float64 + func (x Floats) Q25() float64 + func (x Floats) Q75() float64 + func (x Floats) StdDev() float64 + func (x Floats) Sum() float64 + func (x Floats) Variance() float64 + type Generation struct + Age Floats + Best *genetics.Organism + Complexity Floats + Diversity int + Duration time.Duration + Executed time.Time + Fitness Floats + Id int + Solved bool + TrialId int + WinnerEvals int + WinnerGenes int + WinnerNodes int + func (g *Generation) Average() (fitness, age, complexity float64) + func (g *Generation) Decode(dec *gob.Decoder) error + func (g *Generation) Encode(enc *gob.Encoder) error + func (g *Generation) FillPopulationStatistics(pop *genetics.Population) + type GenerationEvaluator interface + GenerationEvaluate func(pop *genetics.Population, epoch *Generation, context *neat.Options) (err error) + type Generations []Generation + func (is Generations) Len() int + func (is Generations) Less(i, j int) bool + func (is Generations) Swap(i, j int) + type Trial struct + Duration time.Duration + Generations Generations + Id int + WinnerGeneration *Generation + func (t *Trial) Average() (fitness, age, complexity Floats) + func (t *Trial) AvgEpochDuration() time.Duration + func (t *Trial) BestAge() Floats + func (t *Trial) BestComplexity() Floats + func (t *Trial) BestFitness() Floats + func (t *Trial) BestOrganism(onlySolvers bool) (*genetics.Organism, bool) + func (t *Trial) Decode(dec *gob.Decoder) error + func (t *Trial) Diversity() Floats + func (t *Trial) Encode(enc *gob.Encoder) error + func (t *Trial) RecentEpochEvalTime() time.Time + func (t *Trial) Solved() bool + func (t *Trial) Winner() (nodes, genes, evals, diversity int) + type TrialRunObserver interface + EpochEvaluated func(trial *Trial, epoch *Generation) + TrialRunFinished func(trial *Trial) + TrialRunStarted func(trial *Trial) + type Trials []Trial + func (ts Trials) Len() int + func (ts Trials) Less(i, j int) bool + func (ts Trials) Swap(i, j int)