Documentation ¶
Index ¶
- type Vector
- func (v Vector) Add(other Vector)
- func (v Vector) AddScalar(f float64)
- func (v *Vector) Append(f float64)
- func (v Vector) At(i int) float64
- func (v Vector) Contains(f float64) bool
- func (v Vector) Exp()
- func (v Vector) Index(value float64) int
- func (v Vector) Indices(value float64) []int
- func (v Vector) Len() int
- func (v Vector) Ln()
- func (v Vector) Mul(other Vector)
- func (v Vector) Pow(f float64)
- func (v Vector) ReLU()
- func (v Vector) ReLUDer()
- func (v *Vector) Remove(index int)
- func (v Vector) Scale(f float64)
- func (v Vector) Set(i int, f float64)
- func (v Vector) SetData(data []float64)
- func (v Vector) Sigmoid()
- func (v Vector) SigmoidDer()
- func (v Vector) Softmax()
- func (v Vector) String() string
- func (v Vector) Sub(other Vector)
- func (v Vector) Sum() float64
- func (v Vector) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vector ¶
type Vector struct {
// contains filtered or unexported fields
}
Vector is the vector struct
func (Vector) ReLU ¶
func (v Vector) ReLU()
ReLU applies the ReLU activation function to the receiver
func (Vector) ReLUDer ¶
func (v Vector) ReLUDer()
ReLUDer applies the ReLU derivative to the receiver
func (Vector) Sigmoid ¶
func (v Vector) Sigmoid()
Sigmoid applies the sigmoid activation function to the elements
func (Vector) SigmoidDer ¶
func (v Vector) SigmoidDer()
SigmoidDer applies the sigmoid derivative function to the elements
Click to show internal directories.
Click to hide internal directories.