Documentation
¶
Index ¶
- func Argsort(arr []float64) []int
- func AutoNorm(dataSet [][]float64) ([][]float64, []float64, []float64)
- func CalcShannonEnt(dataSet [][]any) float64
- func ChooseBestFeatureToSplit(dataSet [][]any) int
- func Col(mat [][]float64, col int) []float64
- func Dot(a, b []float64) float64
- func EuclideanDistance(vec1, vec2 []float64) float64
- func KernelTrans(matrix [][]float64, vec []float64, kernel func(x, y []float64) float64) []float64
- func MajorityCnt[T comparable](classList []T) T
- func Mat(m, n int) [][]float64
- func MatDot(a, b [][]float64) [][]float64
- func MinMax(dataSet [][]float64) ([]float64, []float64)
- func OnesMat(m, n int) [][]float64
- func Rbf(gamma float64) func([]float64, []float64) float64
- func Row(mat [][]float64, row int) []float64
- func Set(arr []any) []any
- func Sigmoid(inX float64) float64
- func Sigmoids(inX []float64) []float64
- func Sign(v float64) float64
- func SignVec(v []float64) []float64
- func SplitDataSet(dataSet [][]any, axis int, value any) [][]any
- func Sub(a, b []float64) []float64
- func ValProd(a, b [][]float64) [][]float64
- func VecAbs(vec []float64) []float64
- func VecAdd(a, b []float64) []float64
- func VecDiv(vec []float64, s float64) []float64
- func VecDot(a, b []float64) float64
- func VecExp(vec []float64) []float64
- func VecLog(vec []float64) []float64
- func VecMax(vec []float64) float64
- func VecMean(vec []float64) float64
- func VecMin(vec []float64) float64
- func VecMul(vec []float64, s []float64) []float64
- func VecNormalize(vec []float64) []float64
- func VecPow(vec []float64, p float64) []float64
- func VecProd(a float64, b []float64) []float64
- func VecSigmoid(vec []float64) []float64
- func VecSqrt(vec []float64) []float64
- func VecSub(a, b []float64) []float64
- func VecSum(vec []float64) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcShannonEnt ¶
计算给定数据集的香农熵 dataSet 每组数据长度一致,最后一个元素是分类标签
func KernelTrans ¶
func SplitDataSet ¶
按给定特征划分数据集 数据集 特征 特征值
func VecNormalize ¶
func VecSigmoid ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.