models

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 7 Imported by: 0

README

models

Go Report Card

Data Science experiments in Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Maximum

func Maximum(in []float64) (out float64)

Maximum returns the greatest number.

func Mean

func Mean(in []float64) (out float64)

Mean is the average of the given values.

func Median

func Median(in []float64) (out float64)

Median is the number that separates the lower half of the values from the upper half.

func Minimum

func Minimum(in []float64) (out float64)

Minimum returns the smallest number.

func Mode

func Mode(in []float64) (out float64)

Mode is the most repeated number.

func New

func New(data proto.Message) *model

New creates a new model and returns its address.

func Predict

func Predict(in []float64, features []float64, k int, format func(in float64) interface{}) interface{}

Predict ...

Types

This section is empty.

Directories

Path Synopsis
internal
api

Jump to

Keyboard shortcuts

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