Skip to content

Instantly share code, notes, and snippets.

View csbond007's full-sized avatar

Kaustav Saha csbond007

View GitHub Profile
@csbond007
csbond007 / pyramid_arima_install_error
Created February 28, 2020 19:29
Errors in Python Time-Series Library installation
kaustavsaha@Kaustavs-MacBook-Pro ~ %
kaustavsaha@Kaustavs-MacBook-Pro ~ % pip install pyramid-arima
Collecting pyramid-arima
Using cached https://files.pythonhosted.org/packages/67/a5/7067ba4029e0caae394f2212aaa4308861330d4bd2ca083f8613737ba2ba/pyramid-arima-0.8.1.tar.gz
Requirement already satisfied: Cython>=0.23 in /usr/local/lib/python3.7/site-packages (from pyramid-arima) (0.29.15)
Requirement already satisfied: numpy>=1.10 in /usr/local/lib/python3.7/site-packages (from pyramid-arima) (1.18.1)
Requirement already satisfied: scipy>=0.9 in /usr/local/lib/python3.7/site-packages (from pyramid-arima) (1.4.1)
Requirement already satisfied: scikit-learn>=0.17 in /usr/local/lib/python3.7/site-packages (from pyramid-arima) (0.22.1)
Requirement already satisfied: pandas>=0.19 in /usr/local/lib/python3.7/site-packages (from pyramid-arima) (1.0.1)
Requirement already satisfied: statsmodels>=0.9.0 in /usr/local/lib/python3.7/site-packages (from pyramid-arima) (0.11.1)
@csbond007
csbond007 / numenta_version_checking.txt
Created May 4, 2017 20:34
Numenta Version Checking
[centos@ip-10-0-0-11 ~]$
[centos@ip-10-0-0-11 ~]$ python -c 'import pkg_resources;n=pkg_resources.get_distribution("nupic");b=pkg_resources.get_distribution("nupic.bindings");print n.project_name, n.version;print b.project_name, b.version'
nupic 0.5.7
nupic.bindings 0.4.13
[centos@ip-10-0-0-11 ~]$
https://discourse.numenta.org/t/how-to-check-what-version-of-nupic-is-installed/1045
@csbond007
csbond007 / Linux_File_Finder.txt
Created May 4, 2017 19:42
Finding out the location of a directory on a system level in Linux
[centos@ip-10-0-0-11 usr]$ find -name "nupic" -print
./lib/python2.7/site-packages/nupic
./lib64/python2.7/site-packages/nupic
@csbond007
csbond007 / Pycharm_Installation
Created April 19, 2017 14:17
Pycharm Community Version Installation
https://www.jetbrains.com/pycharm/download/#section=windows
Community Download
Do not import settings
Keymap Scheme : Eclipse
IDE Theme : IntelliJ
Create new project
@csbond007
csbond007 / Postgres Errors.txt
Created March 30, 2017 21:12
Postgres_Errors
17/03/30 20:55:38 ERROR JobScheduler: Error running job streaming job 1490905450000 ms.0
org.apache.spark.SparkException: An exception was raised by Python:
Traceback (most recent call last):
File "/home/centos/spark-2.0.2-bin-hadoop2.7/python/lib/pyspark.zip/pyspark/streaming/util.py", line 65, in call
r = self.func(t, *rdds)
File "/home/centos/spark-2.0.2-bin-hadoop2.7/python/lib/pyspark.zip/pyspark/streaming/dstream.py", line 159, in <lambd
a>
func = lambda t, rdd: old_func(rdd)
File "/home/centos/release1_5/ihealthdata/consumer/kaustav_ihealth_anomaly_detection.py", line 1235, in <lambda>
self.clean.foreachRDD(lambda rdd: self.empty_rdd() if rdd.count() == 0 else self.process_rdd(rdd))
MODEL_PARAMS = \
{ 'aggregationInfo': { 'days': 0,
'fields': [],
'hours': 0,
'microseconds': 0,
'milliseconds': 0,
'minutes': 0,
'months': 0,
'seconds': 0,
'weeks': 0,
Importing model params from model_params.heart_beat_model_params
Connected!
Processing record = 0 ...
Traceback (most recent call last):
File "./run.py", line 215, in <module>
runModel()
File "./run.py", line 210, in runModel
runIoThroughNupic(model)
File "./run.py", line 150, in runIoThroughNupic
"heartbeat": heartbeat
We can't make this file beautiful and searchable because it's too large.
2016-11-28 00:24:40.529,139,0,24.875,-7.12789,6.17922,0.181889,-7.11752,6.24527,0.274283,0.295609,0.639278,1.07341,34.8407,-27.1816,-32.6782,0.348372,-0.648166,0.206114,0.645008,32,2.13175,9.40628,-3.31838,2.13377,9.34543,-2.89201,0.440743,-0.348574,0.341198,10.7758,-31.9836,33.666,0.499629,-0.718336,-0.375219,-0.305901,31.3125,8.81372,3.57853,-2.8284,6.64808,5.7409,-3.82489,0.932368,-0.269509,-0.456748,-46.1014,-20.5801,11.8833,0.482755,-0.567856,0.643669,-0.328577
2016-11-28 00:24:40.629,139,0,24.875,-7.02708,6.09944,-0.162718,-7.04404,6.31996,-0.0279713,0.273202,0.670052,1.05155,35.2116,-27.4491,-32.0212,0.350709,-0.65005,0.208887,0.640941,32,1.83683,9.29661,-2.97488,2.01226,9.31575,-3.0576,0.238608,-0.286719,0.342594,10.0079,-31.8258,33.2367,0.498378,-0.72058,-0.37287,-0.305537,31.3125,11.0833,0.375515,1.71223,9.56186,11.0896,-7.78449,-0.247399,-0.0978458,0.833164,-45.4666,19.0838,3.66791,0.507424,-0.186061,0.71779,-0.439703
2016-11-28 00:24:40.728,139,0,24.875,-7.06327,6.13801,-0.124903,-7.01579,6.28937,
We can't make this file beautiful and searchable because it's too large.
timestamp,heartbeat,V3,V4,V5,V6,V7,V8,V9,V10,V11,V12,V13,V14,V15,V16,V17,V18,V19,V20,V21,V22,V23,V24,V25,V26,V27,V28,V29,V30,V31,V32,V33,V34,V35,V36,V37,V38,V39,V40,V41,V42,V43,V44,V45,V46,V47,V48,V49,V50,V51,V52,V53,V54
datetime,int,int,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float
T,,C,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2016-11-24 19:59:40.099,141,0,24.75,-9.98278,2.61759,2.46038,-10.2341,2.69055,2.45977,0.0429727,-0.042494,0.0261664,51.6354,3.95346,-11.2478,0.64893,-0.503093,-0.354745,0.447151,31.875,-0.268179,9.90328,-3.36347,-0.36191,9.84957,-3.20796,-0.0852794,0.0122102,-0.0184075,16.0398,-30.1135,32.846,0.512364,-0.741783,-0.360678,-0.239067,31.1875,10.7309,2.48629,-1.34938,10.6778,1.72467,-1.26455,0.714237,-0.235885,-0.341782,-44.
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Public License version 3 as
# published by the Free Software Foundation.
#