Skip to content

Instantly share code, notes, and snippets.

View gotham29's full-sized avatar

Sam Heiserman gotham29

  • Binghamton University
  • San Jose, CA
View GitHub Profile
@gotham29
gotham29 / run.py
Created October 6, 2016 02:31
My modifications to run.py to create and save numerous models, and run them each on all data sets.
#Hi all, so I'm receiving this Assertion error when trying to save models in NuPIC using the TemporalAnomaly model type,
#and wondered if anyone had any ideas:
Traceback (most recent call last):
File "run.py", line 190, in <module>
runModel(only_csv_files, plot=plot) #runModel(GYM_NAME, plot=plot)
File "run.py", line 166, in runModel
model.save(path)
File "/home/sheiser1/.local/lib/python2.7/site-packages/nupic/frameworks/opf/model.py", line 289, in save
self.__makeDirectoryFromAbsolutePath(saveModelDir)
timestamp observed behavior model prediction
4/3/2016 20:00 -0.077 -0.063635129
4/5/2016 12:00 -0.076 -0.063635129
4/7/2016 3:00 -0.076 -0.063635129
4/8/2016 20:00 -0.079 -0.087750069
4/10/2016 12:00 -0.082 -0.087750069
4/12/2016 3:00 -0.086 -0.094811957
4/13/2016 20:00 -0.09 -0.094811957
4/15/2016 12:00 -0.095 -0.106734632
4/17/2016 3:00 -0.099 -0.110389247