-
Notifications
You must be signed in to change notification settings - Fork 279
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
Squashed everything from numenta/nupic#364 into nupic.core #11
Conversation
Thank you very much @oxtopus ! I wouldn't know how to do that automatically. 👍 Until the tests are in place, I'll test locally here. Btw 1: I think I'll need help from @david-ragazzi when you have time.. The changes to Btw 2: the former PR touches C++ files outside of |
@breznak Those files are python language bindings created by SWIG, I believe. They will stay in the |
Ok, thanks Matt. I'll keep that as a TODO, as those need to be changed too for the PR to work. |
Added oxtopus#1 that merges master changes into this remote branch. I'd like to see what Travis says about this now. |
@rhyolight I'm closing this. Can you pick it up with master merged in your fork instead? |
Merge Matt's Google test branch
Updating master
* Likelihood: initial implementation of Anomaly Likelihood. The python version used as reference. * MovingAverage: add getter for max window size getMaxSize() * Likelihood: simplify & cleanup design * Likelihood: use circular_buffers * Likelihood: use boost::circular_buffer * remove old comment * Likelihood: review 1 - fix include accumulate, inner_product from <numeric> which is needed to be included on some systems explicitely * Likelihood: review 1- fix min needs cast to ulong for both params for Win/AppVeynor * Likelihood: review 1 - fix assert * Likelihood: add header file * Anomaly: add Likelihood implementation implements mode::LIKELIHOOD, mode::WEIGHTED * Anomaly: fix uninitialized var likelihood * Likelihood: initial test * Likelihood: fix header separation * Likelihood: update first test * review 1: Anomaly: fix likelihood score as (1-likelihood) * Likelihood: review 2: remove rawValue as input to the Likelihood code, along with the "hack" from python. * MovingAverage: rev2: rename to getMaxWindowSize() from getMaxSize(); used in Likelihood * Likelihood: rev2: move mean/var helpers to cpp only not defined in header * Likelihood: rev2: use NTA_CHECK * Likelihood: rev2: move docs to header file * Likelihood rev2: cast to UInt * Likelihood: fix filterLikelihoods() where new array would have size +1, now the sizes are correctly the same. Also changes/simplifies the method of IFs there * Likelihood: rev2: optimize vector allocation using resize(), and add security checks * Likelihood: TMP comment out offending check fix that! * Likelihood: add FIXME about (not) using timestamps * Likelihood: fix reserve instead of resize * Likelihood: forgoten fixes * Likelihood: replace some magic numbers with constants * Likelihood: use trailing _ for private methods & members * Move circularBufferToWindow() from header to cpp only * Likelihood: move calcSkipRecords_ from header to cpp * Likelihood: make computeLogLikelihood public as requested for visualizations, ... * Likelihood: remove nullDistribution() as it's only used once * Anomaly: drop (raw) inputValue as it's not used * Anomaly: use Real instead of Real32 * Anomaly: align timestamp (int, default -1) with Likelihood * Likelihood: use Real instead of Real32 * Likelihood: check timestamp is monotonically increasing * Likelihood: honor timestamp uses timestamp if applicable, * Likelihood: make public const members public * Likelihood: fix runningLikelihood always pushed 0.5 * Likelihood: fix formating of docstrings * Likelihood: doc estimateNormal() takes raw anomalyScores * Likelihood: optimize: use const, pass reference& where applicable * Likelihood: TODO comment on aggregation * Likelihood: fix typo * Likelihood: fix CI error in assert * Likelihood: fix runningLikelihoods size dont insert elsewhere in the code. Needs review if valid change * Anomaly: fix merge duplicate code * AnomalyLikelihood: replace boost::circular_buffer with SlidingWindow * Numenta copyright not needed, retrigger build * Travis use gcc 7 * Revert "Travis use gcc 7" This reverts commit 64b2a13.
cc: @breznak re: #8 and numenta/nupic-legacy#364