Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Intelligence ¶
type Intelligence struct {
InputNodes []*Node
TrainingNodes []*Node
Circles [][]*Node
OutputNodes []*Node
}
func CreateIntelligence ¶
func (Intelligence) Run ¶
func (intel Intelligence) Run(input []float64) []float64
func (Intelligence) Train ¶
func (intel Intelligence) Train(data []TrainingData, circularDefault float64, learningRate float64, granularity uint, rewardFunc func([]float64) float64)
type Node ¶
type Node struct {
Output float64
CalculatedOut bool
ActivThresh float64
Weights map[*Node]*float64
SecondWeights map[*Node]*float64
Children []*Node
InpActivFunc func(float64) float64
OutActivFunc func(float64) float64
GlobalFWeight float64
GlobalSWeight float64
}
func (*Node) CalculateOutput ¶
func (n *Node) CalculateOutput()
type TrainingData ¶
type TrainingData struct {
Input []float64
}
Click to show internal directories.
Click to hide internal directories.