model

package
v0.0.0-...-382d658 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadForCmd

func LoadForCmd(cmd *cobra.Command, opts *Options)

Types

type Model

type Model interface {
	Train(io.Reader) error
	Save(io.Writer, save.VectorType) error
}

type Options

type Options struct {
	BatchSize  int
	Dim        int
	Initlr     float64
	Iter       int
	ThreadSize int
	Window     int
	Verbose    bool
}

Options stores common options for each model.

func DefaultOptions

func DefaultOptions() Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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