Documentation ¶
Index ¶
- func AdjustWeight(p Parameters) ([]float64, float64)
- func Cosine(a []float64, b []float64) float64
- func Counter(v []int) map[int]int
- func EuclideanDistance(v1 []float64, v2 []float64) float64
- func GeneratePoints(x []float64, y []float64) plotter.XYs
- func GetRowData(x mat.Matrix, idx int) []float64
- func GetRowMatrix(x mat.Matrix, idx int) mat.Matrix
- func Predict(w []float64, M mat.Matrix, b float64) []float64
- func R2(y_hat []float64, y []float64) float64
- func RandomizeDataset(X, y mat.Matrix) (mat.Matrix, mat.Matrix)
- func SplitDataset(X mat.Matrix, y mat.Matrix, percent float64) (mat.Matrix, mat.Matrix, mat.Matrix, mat.Matrix)
- func Sum(v []float64) float64
- func SumAbs(v []float64) float64
- func Unique(v []int) []int
- func UpdateWeightsHuber(x mat.Matrix, y mat.Matrix, y_hat mat.Matrix, delta float64) ([]float64, float64)
- func UpdateWeightsMAE(x mat.Matrix, y mat.Matrix, y_hat mat.Matrix) ([]float64, float64)
- func UpdateWeightsMSE(x mat.Matrix, y mat.Matrix, y_hat mat.Matrix) ([]float64, float64)
- type Parameters
- type TypeFactoration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdjustWeight ¶
func AdjustWeight(p Parameters) ([]float64, float64)
func EuclideanDistance ¶
func SplitDataset ¶
func UpdateWeightsHuber ¶
func UpdateWeightsMAE ¶
Types ¶
type Parameters ¶
Click to show internal directories.
Click to hide internal directories.