github.com/gorgonia/agogo@v0.1.1/internal/online/online.go (about) 1 package online 2 3 type FwdWorkItem struct { 4 Layer *Layer 5 HiddenChunkIndex int 6 // RNG?? 7 } 8 9 func (item *FwdWorkItem) Do() error { return nil } 10 11 type Layer struct { 12 Width, Height, Chunksize int 13 14 HiddenStates []int 15 PrevHiddenStates []int 16 17 FeedFwdWeights [][]float64 18 FeedBwdWeights [][][]Pair 19 20 ReconActivations [][]Pair 21 PrevReconActivations [][]Pair 22 23 VisibleLayers []Desc 24 25 Predictions [][]int 26 Input [][]int 27 PrevInput [][]int 28 29 Feedback []int 30 PrevFeedback []int 31 32 Alpha, Beta float64 33 } 34 35 type Pair struct { 36 A, B float64 37 } 38 39 type Desc struct { 40 W, H, Chunksize int 41 42 FwdRadius, BwdRadius int 43 44 Predict bool // should this description be predicted? 45 }