Hi Shen,

It might be worth it to spend some time learning Python. It will be hard to
build anything with NuPIC until you know the basics. The error you are
getting is because you have not imported any Python objects from the
"nupic" module.

Scott's tutorial is using something called an iPython notebook. You can't
just type in the code he is using into a python shell and expect it to work.

I suggest you start with a very basic tutorial since you are new to python,
like maybe the sine prediction tutorial. It doesn't do anything useful, but
at least it will show you how to get started with the nupic python library.

https://www.youtube.com/watch?v=KuFfm3ncEwI
If you don't have access to YouTube, the source code is here:
https://github.com/rhyolight/nupic.examples/tree/master/sine-prediction

Regards,

---------
Matt Taylor
OS Community Flag-Bearer
Numenta

On Sat, Mar 12, 2016 at 11:22 AM, Jianghao Shen <[email protected]>
wrote:

> Hello everyone , I'm learning Scott's guide video for beginners of nupic,
> In the section of "CLA model" , it displays the path of the hotgym
> tutorial, and my first question is how to import this hotgym.py into
> python? sorry if this question is too simple, I'm new to Python ,everything
> is from scratch. And second question is there is a line of code : model =
> ModelFactory.creat(MODEL_PARAMS) , but after I type it in Python ,it says
> that "name ModelFactory is not defined". Does anyone know how to fix these
> two problems? thanks
>
> Shen
>

Reply via email to