Documentation
¶
Index ¶
- func CDF(probablities []float64) []float64
- func Cost(expected, output float64) float64
- func CostDerivative(expected, output float64) float64
- func CostVector(expected *Vector[float64], output *Vector[float64]) float64
- func FindIndexFromRight(val float64, cdf []float64) int
- func IndexChoice(probabilities []float64, count int) []int
- func QuadraticCost(trainingInputCount uint64, expected *Vector[float64], output *Vector[float64]) float64
- func Sigmoid(n float64) float64
- func SigmoidDerivative(n float64) float64
- type Matrix
- type Vector
- func (v *Vector[T]) Add(other *Vector[T]) *Vector[T]
- func (v *Vector[T]) Copy() *Vector[T]
- func (v *Vector[T]) Div(other interface{}) *Vector[T]
- func (v *Vector[T]) Dot(other *Vector[T]) T
- func (v *Vector[T]) Length() float64
- func (v *Vector[T]) Magnitude() T
- func (v *Vector[T]) Mul(other interface{}) *Vector[T]
- func (v *Vector[T]) Normalize() *Vector[T]
- func (v *Vector[T]) Push(data T)
- func (v *Vector[T]) Size() int
- func (v *Vector[T]) Sub(other *Vector[T]) *Vector[T]
- func (v *Vector[T]) ToString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CostDerivative ¶
func FindIndexFromRight ¶
func IndexChoice ¶
func QuadraticCost ¶
func SigmoidDerivative ¶
Types ¶
type Matrix ¶
func CreateMatrix ¶
type Vector ¶
type Vector[T constraints.Float] struct { Data []T }
func CreateVector ¶
func CreateVector[T constraints.Float](values ...T) *Vector[T]
func CreateVectorWithSize ¶
func CreateVectorWithSize[T constraints.Float](size int) *Vector[T]
Click to show internal directories.
Click to hide internal directories.