Documentation ¶
Index ¶
- Variables
- func IntSequence(begin, end, step int) (sequence []int)
- type ConditionParams
- type ConditionParamsMap
- type DataLoopOrder
- type IRecs
- type Recs
- func (recs *Recs) AtEnd() bool
- func (recs *Recs) Cur() int
- func (recs *Recs) GetIndex() []int
- func (recs *Recs) Length() int
- func (recs *Recs) Permute()
- func (recs *Recs) ReadNext() interface{}
- func (recs *Recs) Reset()
- func (recs *Recs) Sequential()
- func (recs *Recs) SetIndex(ix []int) error
- func (recs *Recs) SetOrder(order DataLoopOrder)
- func (recs *Recs) SetPos(i int)
- func (recs *Recs) WriteNext(rec interface{})
- type RunParams
- type RunParamsMap
- type TrialBlock
- type TrialBlockMap
- type TrialBlockParams
- type TrialBlockRecs
- type TrialInstance
- type TrialInstanceList
- type TrialInstanceRecs
- type USTVal
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 ¶
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 Recs ¶
type Recs struct { Records IRecs DType reflect.Kind Index []int INext int NRead int Order DataLoopOrder }
func (*Recs) Sequential ¶
func (recs *Recs) Sequential()
func (*Recs) SetOrder ¶
func (recs *Recs) SetOrder(order DataLoopOrder)
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 ¶
func AllRunParams ¶
func AllRunParams() RunParamsMap
type TrialBlock ¶
type TrialBlock []*TrialBlockParams
func (*TrialBlock) Append ¶
func (epl *TrialBlock) Append(ins interface{}) IRecs
func (*TrialBlock) Get ¶
func (epl *TrialBlock) Get(i int) interface{}
func (*TrialBlock) Length ¶
func (epl *TrialBlock) Length() int
type TrialBlockMap ¶
type TrialBlockMap map[string]TrialBlock
func AllTrialBlocks ¶
func AllTrialBlocks() TrialBlockMap
imported from PVLVEnv->EnvBlockParams_Group in cemer
type TrialBlockParams ¶
type TrialBlockParams struct { TrialBlkName string `desc:"name"` PercentOfTotal float64 `desc:"Percent of all trials for this type"` ValenceContext p.Valence `desc:"Positive or negative reward valence"` USProb float64 `desc:"Probability of US"` FixedProb bool `desc:"Fixed probability?"` MixedUS bool `desc:"Mixed US set?"` USMagnitude float64 `desc:"US magnitude"` AlphTicksPerTrialGp int `desc:"Number of ticks for a trial"` CS string `desc:"Conditioned stimulus"` CSTimeStart p.Tick `desc:"Tick of CS start"` CSTimeEnd p.Tick `desc:"Tick of CS end"` CS2TimeStart p.Tick `desc:"Tick of CS2 start"` CS2TimeEnd p.Tick `desc:"Tick of CS2 end"` USType p.US `desc:"Unconditioned stimulus"` USTimeStart p.Tick `desc:"Tick for start of US presentation"` USTimeEnd p.Tick `desc:"Tick for end of US presentation"` Context string `desc:"Context"` Location string `desc:"Location"` }
TrialGp : block-level state aka TrialBlock
type TrialBlockRecs ¶
type TrialBlockRecs struct {
Recs
}
func NewTrialBlockRecs ¶
func NewTrialBlockRecs(epl *TrialBlock) *TrialBlockRecs
func (*TrialBlockRecs) ReadNext ¶
func (eps *TrialBlockRecs) ReadNext() *TrialBlockParams
type TrialInstance ¶
type TrialInstance struct { TrialName string ValenceContext pvlv.Valence USFlag bool TestFlag bool MixedUS bool USProb float64 USMagnitude float64 AlphaTicksPerTrialGp int CS string CSTimeStart int CSTimeEnd int CS2TimeStart int CS2TimeEnd int USTimeStart int USTimeEnd int Context string USType string }
A set of trial groups, sourced from an TrialParams list, instantiated according to the PercentOfTotal field in the source list. this is what we get after calling SetActiveTrialList Still not fully instantiated, US is still a probability
type TrialInstanceList ¶
type TrialInstanceList []*TrialInstance
func (*TrialInstanceList) Append ¶
func (til *TrialInstanceList) Append(ins interface{}) IRecs
func (*TrialInstanceList) Get ¶
func (til *TrialInstanceList) Get(i int) interface{}
func (*TrialInstanceList) Length ¶
func (til *TrialInstanceList) Length() int
type TrialInstanceRecs ¶
type TrialInstanceRecs struct {
Recs
}
func NewTrialInstanceRecs ¶
func NewTrialInstanceRecs(til *TrialInstanceList) *TrialInstanceRecs
func (*TrialInstanceRecs) ReadNext ¶
func (til *TrialInstanceRecs) ReadNext() *TrialInstance
Source Files ¶
Click to show internal directories.
Click to hide internal directories.