Skip to content

Commit e0fcbf1

Browse files
committed
doc upgrade, now integrates harmonium properly
1 parent 5a56956 commit e0fcbf1

File tree

9 files changed

+41
-9
lines changed

9 files changed

+41
-9
lines changed

docs/demonstrations/demo6_boltzmann.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ in which they were produced by the Markov chain constructed above.
337337

338338
We finally take the Harmonium that we have constructed above and fit it to
339339
some MNIST digits (the same dataset we used in Demonstration \#1). Specifically,
340-
we will leverage the `Harmonium` model in the Model Museum as it implements the
341-
above core components/functions internally. In the
340+
we will leverage the [Harmonium](../museum/harmonium.md), model in the Model Museum
341+
as it implements the above core components/functions internally. In the
342342
script `sim_train.py`, you will find a general simulated training loop similar to
343343
what we have developed in previous demonstrations that will fit our Harmonium
344344
to the MNIST database by cycling through it several times, saving the final

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Welcome to ngc-learn's documentation!
3434
museum/gncn_pdh
3535
museum/gncn_t1_ffm
3636
museum/gncn_t1_sc
37+
museum/harmonium
3738

3839
.. toctree::
3940
:maxdepth: 1

docs/museum/gncn_pdh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ formed by this NGC system.
1515
:noindex:
1616
.. automethod:: settle
1717
:noindex:
18-
.. automethod:: update
18+
.. automethod:: calc_updates
1919
:noindex:
2020
.. automethod:: clear
2121
:noindex:

docs/museum/gncn_t1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ formed by this NGC system.
1515
:noindex:
1616
.. automethod:: settle
1717
:noindex:
18-
.. automethod:: update
18+
.. automethod:: calc_updates
1919
:noindex:
2020
.. automethod:: clear
2121
:noindex:

docs/museum/gncn_t1_ffm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ vector outputs. Note that "FFM" denotes "feedforward mapping".
1515
:noindex:
1616
.. automethod:: settle
1717
:noindex:
18-
.. automethod:: update
18+
.. automethod:: calc_updates
1919
:noindex:
2020
.. automethod:: clear
2121
:noindex:

docs/museum/gncn_t1_sc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ formed by this NGC system.
1515
:noindex:
1616
.. automethod:: settle
1717
:noindex:
18-
.. automethod:: update
18+
.. automethod:: calc_updates
1919
:noindex:
2020
.. automethod:: clear
2121
:noindex:

docs/museum/gncn_t1_sigma.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ formed by this NGC system.
1515
:noindex:
1616
.. automethod:: settle
1717
:noindex:
18-
.. automethod:: update
18+
.. automethod:: calc_updates
1919
:noindex:
2020
.. automethod:: clear
2121
:noindex:

docs/museum/harmonium.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Harmonium (Smolensky, 1986)
2+
3+
This circuit implements the Harmonium model proposed in (Smolensky, 1986) [1].
4+
Specifically, this model is **unsupervised** and can be used to process sensory
5+
pattern (row) vector(s) `x` to infer internal latent states. This class offers,
6+
beyond settling and update routines through Contrastive Divergence (Hinton 1999) [2],
7+
a block Gibbs sampling function to generate a chain of synthesized patterns.
8+
9+
```{eval-rst}
10+
.. autoclass:: ngclearn.museum.harmonium.Harmonium
11+
:noindex:
12+
13+
.. automethod:: sample
14+
:noindex:
15+
.. automethod:: settle
16+
:noindex:
17+
.. automethod:: calc_updates
18+
:noindex:
19+
.. automethod:: clear
20+
:noindex:
21+
```
22+
23+
**References:** <br>
24+
[1] Smolensky, P. "Information Processing in Dynamical Systems: Foundations of
25+
Harmony Theory." Parallel distributed processing: explorations in the
26+
microstructure of cognition 1 (1986).
27+
[2] Hinton, Geoffrey E. "Training products of experts by maximizing contrastive
28+
likelihood." Technical Report, Gatsby computational neuroscience unit (1999).

docs/museum/model_museum.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Current models that we have implemented in the Model Museum so far include:
4545
3. GNCN-PDH - the model proposed in (Ororbia &amp; Kifer, 2022) [1]
4646
4. GNCN-t1-FFM - the model developed in (Whittington &amp; Bogacz, 2017) [4]
4747
5. GNCN-t1-SC - the model proposed in (Olshausen &amp; Field, 1996) [5]
48-
6. Harmonium - the model developed in (Hinton 1999) [6]
48+
6. Harmonium - the model developed in (Smolensky, 1986; Hinton 1999) [6] [7]
4949

5050
(If there is a model you think should be exhibited/integrated into the Model
5151
Museum, and/or would like to contribute, please write us at [email protected] or
@@ -66,4 +66,7 @@ synaptic plasticity." Neural computation 29.5 (2017): 1229-1262. <br>
6666
[5] Olshausen, B., Field, D. Emergence of simple-cell receptive field properties
6767
by learning a sparse code for natural images. Nature 381, 607–609 (1996). <br>
6868
[6] Hinton, Geoffrey E. "Training products of experts by maximizing contrastive
69-
likelihood." Technical Report, Gatsby computational neuroscience unit (1999).
69+
likelihood." Technical Report, Gatsby computational neuroscience unit (1999). <br>
70+
[7] Smolensky, P. "Information Processing in Dynamical Systems: Foundations of
71+
Harmony Theory." Parallel distributed processing: explorations in the
72+
microstructure of cognition 1 (1986).

0 commit comments

Comments
 (0)