Mateja, It might be helpful to take a look at how the Patcher patches a CLA model instance: https://github.com/numenta/nupic.cerebro2.server/blob/master/py/cerebro2/patcher.py#L47 <https://github.com/numenta/nupic.cerebro2.server/blob/master/py/cerebro2/patcher.py#L47>
- Chetan > On Mar 17, 2015, at 6:12 PM, Mateja Putic <[email protected]> wrote: > > I'd like to use cerebro2.patcher.Patcher with an opf client > (examples/opf/clients/hotgym/simple) to dump internal CLA state. > > For a spatial pooler, for example, Patcher expects a > nupic.research.spatial_pooler.SpatialPooler object, but clamodel._getRegion() > returns a nupic.engine.Region object. > > Would it be possible to subclass the Region object into a SpatialPooler or > TemporalPooler object? > Or should I write a new Patcher to work with clamodel's getParameter > interface? > > What is the right approach here? > > Thanks, > > -- > Mr. Mateja Putic > Ph.D Candidate > Department of Electrical and Computer Engineering > University of Virginia > (703) 303-2099
