pca

package
v0.0.0-...-d678763 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CentringError   = errors.New("ошибка центрирования данных - размерности")
	SVDError        = errors.New("ошибка SVD разложения")
	ComponentsError = errors.New("компонент больше чем размерность данных")
)

Functions

This section is empty.

Types

type PCA

type PCA struct {
	// Means is vector of means, for each random rector (col) in
	// train, for making centred data.
	Means *mat.VecDense
	// Components is number of components after decomposition
	// (default - all).
	Components      int
	CentredTrain    *mat.Dense
	DecomposedTrain *mat.Dense
	SVD             *mat.SVD
	Result          *mat.Dense
}

func (*PCA) Fit

func (pca *PCA) Fit(train core.Train, components int) (err error)

func (*PCA) Losses

func (pca *PCA) Losses() (relative float64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL