Skip to content
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

Anomaly likelihood #11

Merged
merged 68 commits into from
Nov 29, 2018
Merged

Conversation

breznak
Copy link
Member

@breznak breznak commented Jan 19, 2018

Likelihood is an alternative method of anomaly computation, ported from Python repo.

Beta work, please review for high level functionality! 👍

TODO:

Fixes numenta#1267
Moved from numenta#1268
! the issues/links in this description won't work, please follow the original PR for the references.

breznak added 30 commits April 11, 2017 17:45
of Anomaly Likelihood.

The python version used as reference.
from <numeric> which is needed to be included on some systems explicitely
implements mode::LIKELIHOOD, mode::WEIGHTED
as input to the Likelihood code, along with the "hack" from python.
from getMaxSize(); used in Likelihood
where new array would have size +1, now the sizes are correctly the same.
Also changes/simplifies the method of IFs there
using resize(), and add security checks
@breznak
Copy link
Member Author

breznak commented Nov 26, 2018

Any idea why the OSX Py tests are failing?
https://travis-ci.org/htm-community/nupic.cpp/builds/459707811#L5468

I didn't modify any Py/Swig code here

dkeeney
dkeeney previously approved these changes Nov 26, 2018
Copy link

@dkeeney dkeeney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know the background on this module but this seems like a nice algorithm.
I did not see anything I object to so I will approve it.

@dkeeney
Copy link

dkeeney commented Nov 26, 2018

Hmmm, missed the fact that it did not pass the Python tests. This has something to do with Cells4. Did this indirectly change something in Cells4 somehow?

@breznak
Copy link
Member Author

breznak commented Nov 26, 2018 via email

@breznak breznak closed this Nov 27, 2018
@breznak breznak reopened this Nov 27, 2018
@ctrl-z-9000-times
Copy link
Collaborator

Great work breznak!

My only worry is the unit tests aren't all there yet: //TODO port likelihood tests. If you don't want to do this task now then I would recommend documenting the task and leaving it for later. Just open an issue for this TODO note after this PR is merged.

@breznak
Copy link
Member Author

breznak commented Nov 27, 2018

My only worry is the unit tests aren't all there yet: //TODO port likelihood tests. If you don't want to do this task now then I would recommend documenting the task and leaving it for later

Thanks for review @ctrl-z-9000-times ! Yes, it's an old PR, I'm not using it currently, just want it merged so other people can. Opened #124 with TODO tests

@breznak breznak closed this Nov 28, 2018
@breznak breznak reopened this Nov 28, 2018
@breznak
Copy link
Member Author

breznak commented Nov 28, 2018

Do you have an idea why this is failing? The PR doesn't touch any Region/python stuff. Passes OK an my linux locally, could you please test?

https://travis-ci.org/htm-community/nupic.cpp/builds/460796412#L5470

@breznak breznak added the help wanted Extra attention is needed label Nov 28, 2018
@breznak breznak merged commit 83ea315 into htm-community:master Nov 29, 2018
@breznak breznak deleted the anomaly_likelihood branch November 29, 2018 08:59
@breznak
Copy link
Member Author

breznak commented Nov 29, 2018

Assuming prev OK, this is finally merged too!

@breznak breznak mentioned this pull request Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anomaly backport_upstream What could be useful for upstream backporting community enhancement New feature or request feature new feature, extending API help wanted Extra attention is needed ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port Anomaly Likelihood code from Python
3 participants