numenta / htmresearch

Experimental algorithms. Unsupported.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specify SP params via TP region config

BoltzmannBrain opened this issue · comments

When creating a network with a TP region in the sequence classification factory, you can only specify the TP params and not the underlying SP params. That is, the TP subclasses the SP, so the factory assumes these standard SP params. Trying to specify SP params in the TP region config json will raise an error because they are not defined in the TP region's spec.

There's a Pythonic trick to do this easily and automatically. You can simply introspect the appropriate classes and add params automatically to the spec. This is used in some of the other regions.