Versions in this module Expand all Collapse all v1 v1.1.2 May 6, 2021 v1.1.1 May 6, 2021 v1.1.0 Sep 16, 2020 Changes in this version + var DefaultBrainOptions = BrainOptions + type Brain struct + ActionWindow []int + Age int + AverageLossWindow *cnnutil.Window + AverageRewardWindow *cnnutil.Window + Epsilon float64 + EpsilonMin float64 + EpsilonTestTime float64 + Experience []Experience + ExperienceSize int + ForwardPasses int + Gamma float64 + LastInputArray []float64 + LatestReward float64 + Learning bool + LearningStepsBurnin int + LearningStepsTotal int + NetInputs int + NetWindow [][]float64 + NumActions int + NumStates int + Rand *rand.Rand + RandomActionDistribution []float64 + RewardWindow []float64 + StartLearnThreshold int + StateWindow [][]float64 + TDTrainer *convnet.Trainer + TemporalWindow int + ValueNet convnet.Net + WindowSize int + func NewBrain(numStates, numActions int, opt BrainOptions) (*Brain, error) + func (b *Brain) Backward(reward float64) + func (b *Brain) Forward(inputArray []float64) int + func (b *Brain) NetInput(xt []float64) []float64 + func (b *Brain) Policy(s []float64) (action int, value float64) + func (b *Brain) RandomAction() int + func (b *Brain) String() string + type BrainOptions struct + EpsilonMin float64 + EpsilonTestTime float64 + ExperienceSize int + Gamma float64 + HiddenLayerSizes []int + LayerDefs []convnet.LayerDef + LearningStepsBurnin int + LearningStepsTotal int + Rand *rand.Rand + RandomActionDistribution []float64 + StartLearnThreshold int + TDTrainerOptions convnet.TrainerOptions + TemporalWindow int + type Experience struct + Action0 int + Reward0 float64 + State0 []float64 + State1 []float64