data

package
v1.6.19 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KiT_DataLoopOrder = kit.Enums.AddEnum(DataLoopOrderN, kit.NotBitFlag, nil)
View Source
var USTimeInVals map[string]int = map[string]int{}/* 321 elements not displayed */

Functions

func IntSequence

func IntSequence(begin, end, step int) (sequence []int)

Types

type ConditionParams

type ConditionParams struct {
	Nm              string `desc:"identifier for this type of configuration"`
	Desc            string `desc:"description of this configuration"`
	TrialBlkNm      string `desc:"trial group name"`
	FixedProb       bool   `desc:"fixed probability for each trial group"`
	NIters          int    `desc:"number of iterations to run"`
	BlocksPerIter   int    `` /* 168-byte string literal not displayed */
	PermuteTrialGps bool   `desc:"permute list of fully-instantiated trials after generation"`
	SaveFinalWts    bool   `desc:"save final weights after training"`
	SaveWtsInterval int    `desc:"how frequently to save weights during training (in blocks)"`
	TestInterval    int    `desc:"how frequently (blocks) to run a test during training"`
	LogTrials       bool   `desc:"should trial-level data be saved to log files?"`
	LoadWeights     bool   `desc:"load initial weights from a file (specified in weights_file)"`
	WeightsFile     string `` /* 126-byte string literal not displayed */
	LoadStBlk       int    `desc:"after loading weights, reset block counter to this value (-1 = leave at value from the loaded weights)"`
	LrsStepBlks     int    `desc:"learning rate schedule blocks per step of decrease in learning rate"`
	LrsNSteps       int    `desc:"number of steps in the learning rate schedule"`
	LrsBumpStep     int    `` /* 138-byte string literal not displayed */
}

ConditionParams contains settings for one portion of a Run. A ConditionParams refers to a single ConditionParams, along with other information such as the number of times to run each instantiated Block. A single Block can be referenced by many RunBlocks.

type ConditionParamsMap

type ConditionParamsMap map[string]ConditionParams

func AllConditionParams

func AllConditionParams() ConditionParamsMap

type DataLoopOrder

type DataLoopOrder int
const (
	SEQUENTIAL DataLoopOrder = iota
	PERMUTED
	RANDOM
	DataLoopOrderN
)

type IRecs

type IRecs interface {
	Length() int
	Append(interface{}) IRecs
	Get(int) interface{}
}

type Recs

type Recs struct {
	Records IRecs
	DType   reflect.Kind
	Index   []int
	INext   int
	NRead   int
	Order   DataLoopOrder
}

func NewRecs

func NewRecs(irecs IRecs) *Recs

func (*Recs) AtEnd

func (recs *Recs) AtEnd() bool

func (*Recs) Cur

func (recs *Recs) Cur() int

func (*Recs) GetIndex

func (recs *Recs) GetIndex() []int

func (*Recs) Length

func (recs *Recs) Length() int

func (*Recs) Permute

func (recs *Recs) Permute()

func (*Recs) ReadNext

func (recs *Recs) ReadNext() interface{}

func (*Recs) Reset

func (recs *Recs) Reset()

Set to initial state just before reading

func (*Recs) Sequential

func (recs *Recs) Sequential()

func (*Recs) SetIndex

func (recs *Recs) SetIndex(ix []int) error

Set the entire index array for the TrialInstanceRecs

func (*Recs) SetOrder

func (recs *Recs) SetOrder(order DataLoopOrder)

func (*Recs) SetPos

func (recs *Recs) SetPos(i int)

func (*Recs) WriteNext

func (recs *Recs) WriteNext(rec interface{})

type RunParams

type RunParams struct {
	Nm      string `desc:"Name of the sequence"`
	Desc    string `desc:"Description"`
	Cond1Nm string `desc:"name of condition 1"`
	Cond2Nm string `desc:"name of condition 2"`
	Cond3Nm string `desc:"name of condition 3"`
	Cond4Nm string `desc:"name of condition 4"`
	Cond5Nm string `desc:"name of condition 5"`
}

A sequence of runs (each step is a ConditionParams object)

type RunParamsMap

type RunParamsMap map[string]RunParams

func AllRunParams

func AllRunParams() RunParamsMap

type USTVal

type USTVal struct {
	Enum   int
	Coords [4]int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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