Nupic custom region initialization error

Hello all,

I already posted a Github issue as the example for a creating a custom region does not work.
Something must be missing for the initialization of the network (engine_internal) as network.initialize() causes the following error:

Traceback (most recent call last):
  File "", line 127, in <module>
    network = createNetwork(dataSource)
  File "", line 101, in createNetwork
  File "/home/kaikun/.local/lib/python2.7/site-packages/nupic/engine/", line 691, in initialize
    engine_internal.Network.initialize(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/nupic/bindings/", line 1159, in initialize
    return _engine_internal.Network_initialize(self)
TypeError: initialize() takes exactly 3 arguments (1 given)

I’m sure others have already created custom regions and maybe know whats missing?
The network initialization usually does not require the optional arguments and if only sp/tm regions/sensors are used it works just fine.

Kind regards

1 Like

I will look into this when I get back to the office (I’m off until Wednesday). Let’s handle it on the Github issue you created. Seems like a bug.

1 Like