numenta / nupic.research

Experimental algorithms. Unsupported.
https://nupicresearch.readthedocs.io
GNU Affero General Public License v3.0
104 stars 60 forks source link

Construct prototype while training #626

Closed karangrewal closed 2 years ago

karangrewal commented 2 years ago

The PrototypeContext mixin has been augmented so that now it can do either of the following during training:

  1. Create prototype contexts via task labels while training (just as before),
  2. Construct prototype contexts via a clustering technique in an online way while training without need for tasks labels (new!).

There is also a corresponding config file for experiments that construct the prototype context while training. A few additional things to note:

Here are results from a stand-alone script that constructed prototypes (for continual learning on permutedMNIST) vs this Vernon implementation. The results are very similar, and averaged over 8 independent trials.

Raw Vernon
2 tasks 97.55 97.48
5 tasks 96.00 96.41
10 tasks 94.32 94.53