ml

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: AGPL-3.0 Imports: 7 Imported by: 3

Documentation

Overview

Package ml provides some fundamental machine learning primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Classifier

type Classifier interface {
	Classify(data []float64) (int, error)
	Train(data [][]float64, correct []int) error
}

Classifier TODO.

type GoLearnClassifier

type GoLearnClassifier struct {
	// contains filtered or unexported fields
}

GoLearnClassifier TODO.

func (*GoLearnClassifier) Classify

func (c *GoLearnClassifier) Classify(data []float64) (int, error)

Classify TODO.

func (*GoLearnClassifier) Train

func (c *GoLearnClassifier) Train(data [][]float64, correct []int) error

Train TODO.

type GoLearnNNClassifier

type GoLearnNNClassifier struct {
	// contains filtered or unexported fields
}

GoLearnNNClassifier TODO.

func (*GoLearnNNClassifier) Classify

func (c *GoLearnNNClassifier) Classify(data []float64) (int, error)

Classify TODO.

func (*GoLearnNNClassifier) Train

func (c *GoLearnNNClassifier) Train(data [][]float64, correct []int) error

Train TODO.

type Tensors added in v0.8.0

type Tensors map[string]*tensor.Dense

Tensors are a data structure to hold the input and output map of tensors that will fed into a model, or come from the result of a model.

Directories

Path Synopsis
Package inference allows users to do inference through tflite (tf, pytorch, etc in the future)
Package inference allows users to do inference through tflite (tf, pytorch, etc in the future)

Jump to

Keyboard shortcuts

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