pca

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Implementation of Principal Component Analysis(PCA) with SVD

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PCA

type PCA struct {
	Num_components int
	// contains filtered or unexported fields
}

func NewPCA

func NewPCA(num_components int) *PCA

Number of components. 0 - by default, use number of features as number of components

func (*PCA) Fit

func (pca *PCA) Fit(X *mat.Dense) *PCA

Fit PCA model

func (*PCA) FitTransform

func (pca *PCA) FitTransform(X *mat.Dense) *mat.Dense

Fit PCA model and transform data Need return is base.FixedDataGrid

func (*PCA) Transform

func (pca *PCA) Transform(X *mat.Dense) *mat.Dense

Need return is base.FixedDataGrid

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL