ts

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ts contains implementation of the operations related to a training set.

It includes preparing the training set and its validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDummies

func AddDummies(x [][]float64) [][]float64

AddDummies adds a dummy feature equals 1 at the beginning of each feature vector being a part of a design matrix.

func AddDummy

func AddDummy(x []float64) []float64

AddDummy adds a dummy feature equals 1 at the beginning of a feature vector.

func Validate

func Validate(s regression.TrainingSet) error

Validate validates a training set.

A training set is valid if a design matrix is valid and a target vector has the same length as the design matrix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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