Documentation
¶
Index ¶
Constants ¶
View Source
const (
CSV = DataFormat("csv")
)
View Source
const (
KMeans = AlgorithmType("kmeans")
)
View Source
const (
KMeansDefaultRound = 30
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Algorithm ¶
type Algorithm interface {
Run(data [][]float32, numClass int, context interface{}) (centers [][]float32, class []int)
}
聚类算法接口
func GetAlgorithm ¶
func GetAlgorithm(algorithmType AlgorithmType) Algorithm
type AlgorithmType ¶
type AlgorithmType string
type DataFileLoader ¶
func NewDataLoader ¶
func NewDataLoader(format DataFormat) DataFileLoader
type DataFormat ¶
type DataFormat string
type KMeansContext ¶
type KMeansContext struct {
Round int
}
Click to show internal directories.
Click to hide internal directories.