Documentation ¶
Index ¶
- func SumCols(m Matrix) vec.Vector
- type Matrix
- func Copy(from Matrix) Matrix
- func InitCols(cols ...vec.Vector) Matrix
- func InitFromStringArray(s [][]string) Matrix
- func InitRows(rows ...vec.Vector) Matrix
- func Make(i, j int) Matrix
- func Mul(m1, m2 Matrix) Matrix
- func Slice(m Matrix, from, to int) Matrix
- func Sub(m1, m2 Matrix) Matrix
- func Transpose(m Matrix) Matrix
- func (m Matrix) AddCol(col vec.Vector)
- func (m *Matrix) Append(v vec.Vector, axis int)
- func (m Matrix) At(i, j int) float64
- func (m Matrix) Col(i int) vec.Vector
- func (m Matrix) ColCount() int
- func (m *Matrix) Drop(index, axis int)
- func (m Matrix) Mul(other Matrix)
- func (m Matrix) Pow(f float64)
- func (m Matrix) ReLU()
- func (m Matrix) ReLUDer()
- func (m Matrix) Row(i int) vec.Vector
- func (m Matrix) RowCount() int
- func (m Matrix) Scale(f float64)
- func (m Matrix) Set(i, j int, f float64)
- func (m Matrix) Sigmoid()
- func (m Matrix) SigmoidDer()
- func (m Matrix) String() string
- func (m Matrix) Sub(other Matrix)
- func (m Matrix) SwapCols(i, j int)
- func (m *Matrix) Transpose()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
Matrix Matrix
func InitFromStringArray ¶
InitFromStringArray initilizes an array from a 2D array of strings
func (Matrix) ReLUDer ¶
func (m Matrix) ReLUDer()
ReLUDer applies the ReLU derivative to each element
func (Matrix) Sigmoid ¶
func (m Matrix) Sigmoid()
Sigmoid applies the sigmoid function to each element
func (Matrix) SigmoidDer ¶
func (m Matrix) SigmoidDer()
SigmoidDer applies the sigmoid derivative to each element
Click to show internal directories.
Click to hide internal directories.