How to use SDRClassifierRegion?

Can @ycui or someone else help me with a simple example how to use the SDRClassifierRegion to get prediction values?
I had tried to modify some examples provided in the Nupic project but the only one using CLAClassifier is the examples/network/hierarchy_network_demo.py and this example uses the customCompute function.

Which output of TPRegion I should connect with the SDRClassifierRegion? It will be connected to bottomUpIn (default input) or predictedActiveCells?

How to read the predicted values from the 3 outputs of SDRClassifierRegion?

Thank you in advance.

Best Regards,

Ruan Belém

2 Likes

Here is an example that uses Encoder -> SP -> TM -> SDRClassifier for prediction.

The parameters can be found in

1 Like

Dear @ycui,

Thank you so much for your prompt answer but, at this time, I’m not using OPF. I am trying to use Network API directly. Do you have any example using the Network API instead OPF?

Best Regards,

Ruan Belém

You could take a look at the test file as an example of using the Network API with SDR classifier:

1 Like

Dear @subutai,

Thank you for your time. This test is really useful.

Best Regards,

Ruan Belém

Sure. @ycui wrote it though :slight_smile: