8.1.0.5. gb-states
(packages/gblearn2/gb-states.lsh)

Author(s): Yann LeCun

states are the main objects used to store state variables in or between modules.

8.1.0.5.0. (each-idx-slots o s f1 [f2...[fn]])
(packages/gblearn2/gb-states.lsh)


evaluates lists in f for all active idx slots of object o , (as returned by (==> o idx-slots)) with s successively taking the values of the slots in question.

8.1.0.5.1. idx-state
(packages/gblearn2/gb-states.lsh)


an idx-state is a state that contains vector or matrix variables.

8.1.0.5.1.0. (==> idx-state idx-slots)
[MSG] (packages/gblearn2/gb-states.lsh)


return the complete list of idx slots.

8.1.0.5.1.1. (new idx-state [params])
[CLASS] (packages/gblearn2/gb-states.lsh)


create a new simple-state. if params is absent, the simple-state is left unsized. Otherwise params must be a list of integer (possibly empty), which will be used to determine the size of the object. params has the same meaning as the 2nd parameter of the functions new-index.

8.1.0.5.1.2. (==> idx-state resize [list-of-dims])
[MSG] (packages/gblearn2/gb-states.lsh)


resize all the idx slots (as returned by idx-slots) list-of-dims is a list with p numbers specifying the size of the last p dimensions of each slot. If list-of-dim is absent, all the active slots are undimed.
See: (==> idx-state idx-slots)


8.1.0.5.1.3. (==> idx-state undim)
[MSG] (packages/gblearn2/gb-states.lsh)


undim all the active idx slots of idx-state .

8.1.0.5.1.4. (==> idx-state clear)
[MSG] (packages/gblearn2/gb-states.lsh)


fill all the active idx slots with zeroes
See: (==> idx-state idx-slots)


8.1.0.5.1.5. (==> idx-state load s)
[MSG] (packages/gblearn2/gb-states.lsh)


fill slot x with content of file s

8.1.0.5.1.6. (==> idx-state save s
(packages/gblearn2/gb-states.lsh)


save content of slot x into file s .

8.1.0.5.1.7. (==> idx-state dump s
(packages/gblearn2/gb-states.lsh)


save the entire object into file s

8.1.0.5.2. idx0-state
(packages/gblearn2/gb-states.lsh)




8.1.0.5.3. idx0-dstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.4. idx0-ddstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.5. idx1-state
(packages/gblearn2/gb-states.lsh)




8.1.0.5.6. idx1-dstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.7. idx1-ddstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.8. idx2-state
(packages/gblearn2/gb-states.lsh)




8.1.0.5.9. idx2-dstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.10. idx2-ddstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.11. idx3-state
(packages/gblearn2/gb-states.lsh)




8.1.0.5.12. idx3-dstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.13. idx3-ddstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.14. idx4-state
(packages/gblearn2/gb-states.lsh)




8.1.0.5.15. idx4-dstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.16. idx4-ddstate
(packages/gblearn2/gb-states.lsh)




8.1.0.5.17. class-state
(packages/gblearn2/gb-states.lsh)


a special kind of state used to store the output of a classifier. class-state are generated by modules such as class-max, and used by meters such as classifier-meter. No backprop is possible through a class-state.

8.1.0.5.18. lclass-state
(packages/gblearn2/gb-states.lsh)


a special kind of state used to store the output of a spatial classifier such as ledist-classer.