persist

package
v0.0.0-...-62718c5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SerializationFormatVersion = "Joi 10"
)

Variables

This section is empty.

Functions

func Save

func Save(filename string, meta Modeldata)

Save the persitable model.

Types

type Modeldata

type Modeldata struct {
	// FormatVersion should always be 1 for this structure
	FormatVersion string
	// Uses the classifier name (provided by the classifier)
	Name string
	// ClassifierVersion is also provided by the classifier
	// and checks whether this version of GoLearn can read what's
	// be written.
	Version string

	Data []byte
}

in a classification file format.

func Load

func Load(filename string) Modeldata

Load the last model that was saved.

Jump to

Keyboard shortcuts

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