Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement NetworkAPI example #460

Closed
2 tasks
breznak opened this issue May 8, 2019 · 8 comments
Closed
2 tasks

Implement NetworkAPI example #460

breznak opened this issue May 8, 2019 · 8 comments

Comments

@breznak
Copy link
Member

breznak commented May 8, 2019

A user is having a problem with SDRClassifier on numenta's, we'd like to replicate the provided experiment (runnable source code and data here numenta/nupic-legacy#3875 )

This way we can

Related c++ Classifier region #309 , but this is not required, as the example runs python.

@breznak
Copy link
Member Author

breznak commented May 8, 2019

CC @dkeeney

@dkeeney
Copy link

dkeeney commented May 9, 2019

we'd like to replicate the provided experiment

I can add this to my plate but I cannot do any work until this weekend, after my guest leave.
Should not be difficult to make a NtworkAPI version of hotgym if we had the right encoder and a classifierRegion ... something like

Network n;
n.addRegion("encoder", "RandomDistributedScalarEncoder");
n.addRegion("SP", "SPRegion");
n.addRegion("TM", "TMRegion", "parameters go here");
n.addRegion("Classifier", "ClassifierRegion");
n.link("encoder", "SP");
n.link("SP", "TM");
n.link("TM", "Classifier");
n.run(EPOCHS);

Not quite as simple as that because we need to specify the non-default parameters but you get the idea.

@dkeeney dkeeney self-assigned this May 9, 2019
@breznak
Copy link
Member Author

breznak commented May 9, 2019

Should not be difficult to make a NtworkAPI version of hotgym if we had the right encoder and a classifierRegion

Perfect. I was hoping if the orig author would be interesting in contributing the code, but we'll see.
The example is in python, so I was hoping we use python Regions (=no need to write SDRClassifier c++ region), and encoders (either from bindings, or I'll port them #462 )

Also, hotgym needs only anomaly, no?

@dkeeney
Copy link

dkeeney commented May 9, 2019

I was hoping we use python Regions ...

yes, we can use Python Regions. That would be simpler if they have been converted to Python3.
Eventually I do want to write a ClassifierRegion so C++ only folks will have a classifier.

Also, hotgym needs only anomaly, no?

Oh, of course. So we don't even need the classifier for this. Only an encoder Region and that can be in Python. All we need to do is register the python region with Network.

@Thanh-Binh
Copy link

@dkeeney Did you write C++ ClassifierRegion? If yes, where can I find it? Thanks

@breznak
Copy link
Member Author

breznak commented Aug 2, 2019

Did you write C++ ClassifierRegion? If yes, where can I find it?

it would be in src/htm/regions/, so not yet.

@dkeeney
Copy link

dkeeney commented Aug 9, 2019

Did you write C++ ClassifierRegion? If yes, where can I find it?

We would love to have one. Would you be willing to build it?

@breznak
Copy link
Member Author

breznak commented Jun 2, 2020

We have napi_hello example which does that 👍

@breznak breznak closed this as completed Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants