Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExampleAllModelsWrong ¶
GetExampleAllModelsWrong returns a dataset where none of the possible models fits the data
func GetExampleXY ¶
GetExampleXY returns an example set used for testing
Types ¶
type DemoSet ¶
DemoSet is a function type for functions that returns a design matrix and a slice with target values
type MockCohenTarget ¶
type MockCohenTarget struct {
Mode int
}
MockCohenTarget implements the CohenTarget interface
func (*MockCohenTarget) GetSelection ¶
func (m *MockCohenTarget) GetSelection(indices []int) []int
GetSelection returns a selection
func (*MockCohenTarget) GetX ¶
func (m *MockCohenTarget) GetX() mat.Matrix
GetX returns an empety matrix
func (*MockCohenTarget) HyperParameters ¶
func (m *MockCohenTarget) HyperParameters() map[string]float64
HyperParameters returns a map with the hyper parameters
func (*MockCohenTarget) StringRep ¶
func (m *MockCohenTarget) StringRep() string
StringRep returns a string representation of the hyper parameters
type OmpTest ¶
type OmpTest struct { Name string Target []float64 X *mat.Dense ExpectOrder []int ExpectCoeff []float64 }
OmpTest is a structure for holding nessecary data for testing orthogonal matchin pursuit
func Exponentials ¶
Exponentials return a test case with a sum of exponential functions with different decay rates
func LinearCubic ¶
LinearCubic creates a test case where the target function is a straight line and the desigin matrix contains features up to cubic order