Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVectorMaxIdx ¶
GetVectorMaxIdx gets the index of the maximum value within a vector.
func IsEqualMatrices ¶
IsEqualMatrices compares 2 matrices with a threshold.
func IsEqualVectors ¶
IsEqualVectors compares 2 vectors with a threshold.
Types ¶
type SparseMatrix ¶
type SparseMatrix struct {
Vectors []SparseVector
}
SparseMatrix is a list of sparse vectors.
func ReadLibsvmFileToSparseMatrix ¶
func ReadLibsvmFileToSparseMatrix(fileName string) (SparseMatrix, error)
ReadLibsvmFileToSparseMatrix reads libsvm file into sparse matrix.
type SparseVector ¶
SparseVector is a map with index is a key and value is a value at that index.
Click to show internal directories.
Click to hide internal directories.