Have you seen Scott's "Beginner's Guide"? https://github.com/numenta/nupic/wiki/Using-NuPIC#beginners-guide-to-nupic
He instantiates the ScalarEncoder directly and uses it in a standalone fashion. There is a link to the code too. Does that help? --------- Matt Taylor OS Community Flag-Bearer Numenta On Sat, Feb 20, 2016 at 10:36 PM, mraptor <[email protected]> wrote: > thanks, > > I was talking mostly of standalone use i.e. separating it in its own > class w/o any non-standard python dependencies > -------| http://ifni.co > > > On Sat, Feb 20, 2016 at 9:28 PM, Kentaro Iizuka > <[email protected]> wrote: >> Hello mraptor, >> >> Yes! >> You can use NuPIC's ScalarEncoder as Python class. >> NuPIC’s unit test code of ScalarEncoder may helpful for you. >> https://github.com/numenta/nupic/blob/master/tests/unit/nupic/encoders/scalar_test.py >> >> Here is my small sample code using ScalarEncoder. >> https://gist.github.com/iizukak/2c77e9e4ee8a842e86b7 >> >> Best regards. >> >> 2016-02-21 5:01 GMT+09:00 mraptor <[email protected]>: >>> hi, >>> >>> Is there a easy way to separate Scalar encoder as a standalone class. >>> I only need init, encode/decode functionality. >>> >>> https://github.com/numenta/nupic/blob/master/src/nupic/encoders/scalar.py >>> >>> I don't want to reinvent the wheel :) >>> >>> thanks >>> >>> -------| http://ifni.co >>> >> >> >> >> -- >> Kentaro Iizuka<[email protected]> >> >> Github >> https://github.com/iizukak/ >> >
