configuration

package
v0.0.0-...-eb36bdb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Global = Default()

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	RangePow       []int
	K              []int
	L              []int
	Sparsity       []float64
	BatchSize      int
	Rehash         int
	Rebuild        int
	InputDim       int
	TotRecords     int
	TotRecordsTest int
	LearningRate   float64
	Epoch          int
	Stepsize       int
	SizesOfLayers  []int
	NumLayer       int
	TrainData      string
	TestData       string
	Weights        string
	SavedWeights   string
	LogFile        string
	UseAdam        bool
	HashFunction   HashFunctionType
	LoadWeight     bool
	LayerMode      LayerModeType
	CpuProfile     bool
	MemProfile     bool
}

func Default

func Default() *Configuration

func FromJsonFile

func FromJsonFile(jsonFilename string) (*Configuration, error)

type HashFunctionType

type HashFunctionType int8
const (
	WtaHashFunction HashFunctionType = iota + 1
	DensifiedWtaHashFunction
	DensifiedMinhashFunction
	SparseRandomProjectionHashFunction
)

type LayerModeType

type LayerModeType int8
const (
	LayerMode1 LayerModeType = iota + 1 // mode 1 == top-K treshold ?
	LayerMode2
	LayerMode3
	LayerMode4 // mode 4 == sampling ?
)

Jump to

Keyboard shortcuts

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