Hi Marek, Yes, this was my hackathon contribution :-)
Look in nupic/examples/tp/hello_tp.py It's a simple example program that shows you exactly how to use the TP directly. We do this a lot for testing. I also think it's a great way to understand the temporal pooler in more detail. The comments from the top of the file are below. --Subutai """ This program shows how to access the Temporal Pooler directly by demonstrating how to create a TP instance, train it with vectors, get predictions, and inspect the state. The code here runs a very simple version of sequence learning, with one cell per column. The TP is trained with the simple sequence A->B->C->D->E HOMEWORK: once you have understood exactly what is going on here, try changing cellsPerColumn to 4. What is the difference between one cell per column and 4 cells per column? PLEASE READ THROUGH THE CODE COMMENTS - THEY EXPLAIN THE OUTPUT IN DETAIL """ On Tue, Aug 6, 2013 at 3:43 PM, Marek Otahal <[email protected]> wrote: > +1 for the identity/pass-thru encoder. Also, check the temporal pooler > code, as you could skip the spatial pooler and feed directly to TP, I > remember some discussion about this and think it has been implemented. > > > On Tue, Aug 6, 2013 at 11:49 PM, Francisco Webber <[email protected]>wrote: > >> Scott, >> I heavily support this idea of a pass-through encoder as thats what my >> text-SDRs will probably need. >> >> Francisco >> >> On 06.08.2013, at 22:49, Scott Purdy wrote: >> >> > One thing we have talked about but not implemented is a pass-through >> encoder. It would let you create an SDR in any way you want and pass it in >> to the CLA model's compute method as the field value. That would probably >> be the best way to approach your problem if you want to implement it with >> the CLA. >> > >> > >> >> >> _______________________________________________ >> nupic mailing list >> [email protected] >> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org >> > > > > -- > Marek Otahal :o) > > _______________________________________________ > nupic mailing list > [email protected] > http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org > >
_______________________________________________ nupic mailing list [email protected] http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
