pca

package
v0.0.0-...-74ae077 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 1 Imported by: 5

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

Jump to

Keyboard shortcuts

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