Common Lisp Package: MGL-EXAMPLE-MNIST

README:

FUNCTION

Private

IMAGE-ARRAY (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

IMAGE-LABEL (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

Undocumented

CLAMP-ARRAY (IMAGE ARRAY START)

CLAMP-LABELS (IMAGES CHUNK)

CLAMP-STRIPED-NODES (IMAGES STRIPED)

COPY-IMAGE (INSTANCE)

SETFIMAGE-ARRAY (NEW-VALUE INSTANCE)

SETFIMAGE-LABEL (NEW-VALUE INSTANCE)

IMAGE-P (OBJECT)

INIT-MNIST-DBN (DBN &KEY STDDEV (START-LEVEL 0))

INIT-WEIGHTS (NAME BPN DEVIATION)

LOAD-TEST (&OPTIONAL (MNIST-DATA-DIR *MNIST-DATA-DIR*))

LOAD-TRAINING (&OPTIONAL (MNIST-DATA-DIR *MNIST-DATA-DIR*))

MAKE-BPN (DEFS CHUNK-NAME &KEY CLASS INITARGS)

MAKE-IMAGE (&KEY ((LABEL DUM0) NIL) ((ARRAY DUM1) NIL))

MAKE-MNIST-DBM

MAKE-MNIST-DBN/2 (DBM)

MAKE-SAMPLER (STORIES &KEY MAX-N OMIT-LABEL-P SAMPLE-VISIBLE-P)

MAKE-TEST-SAMPLER (&KEY OMIT-LABEL-P)

MAKE-TRAINING-SAMPLER (&KEY OMIT-LABEL-P)

READ-IMAGE-ARRAY (STREAM)

READ-IMAGE-ARRAYS (STREAM)

READ-IMAGE-LABELS (STREAM)

READ-LOW-ENDIAN-UB32 (STREAM)

READ-MAGIC-OR-LOSE (STREAM MAGIC)

STRIP-SAMPLE-VISIBLE (SAMPLES)

TRAIN-MNIST-BPN (BPN &KEY (BATCH-SIZE (MIN (LENGTH *TRAINING-IMAGES*) 1000)) (N-SOFTMAX-EPOCHS 5) N-EPOCHS)

TRAIN-MNIST-DBM (DBM)

TRAIN-MNIST-DBN (DBN &KEY N-EPOCHS N-GIBBS LEARNING-RATE DECAY VISIBLE-SAMPLING (START-LEVEL 0))

TRAIN-MNIST/1 (&KEY LOAD-DBN-P)

TRAIN-MNIST/2 (&KEY LOAD-DBN-P LOAD-DBM-P)

UNROLL-MNIST-DBM (DBM &KEY USE-LABEL-WEIGHTS INITARGS)

UNROLL-MNIST-DBN/1 (DBN)

VARIABLE

Private

*MNIST-DATA-DIR*

Set this to the directory where the uncompressed mnist files reside.

*MNIST-SAVE-DIR*

Set this to the directory where the trained models are saved.

Undocumented

*MNIST-1-BPN-FILENAME*

*MNIST-1-DBN-FILENAME*

*MNIST-2-BPN-FILENAME*

*MNIST-2-DBM-FILENAME*

*MNIST-2-DBN-FILENAME*

CLASS

Private

Undocumented

IMAGE

MNIST-BASE-TRAINER

MNIST-BPN

MNIST-BPN/2

MNIST-CG-BP-TRAINER

MNIST-DBM

MNIST-DBM-SEGMENT-TRAINER

MNIST-DBM-TRAINER

MNIST-DBN

MNIST-DBN/1

MNIST-RBM

MNIST-RBM-SEGMENT-TRAINER

MNIST-RBM-TRAINER

MNIST-RBM/2