forked from numenta/NAB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update NAB to Python 3 (numenta#353)
* Convert NAB and most detectors to Python 3 * Refactor remaining Python 2 dependant detectors. - Move twitterADVec documentation and script from wiki+gist to repository. * Update main README.md to reflect changes following NAB port * Disambiguate -d, --detect, and --detectors by readding --detect argument (See: numenta#346) * Remove duplicate files from htmjava detector dir * add plot and build, dist to gitignore * NAB: py2 numenta detector: update install instructions * Add executable bit to gradlew * Reduce problematic wait time value in runner.py scripts * Added RCF runtime to list of offline detectors. * Fixed versions, added CHANGELOG * Specify python 3.7 * Added dockerfile for python 2 detectors * Added Conda stuff * Conda install nab dev mode
- Loading branch information
Showing
70 changed files
with
4,228 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
## [v1.1] - 2019-09-12 | ||
### Updated runtime to Python 3 | ||
- Moved python 2 runtimes into independent detectors. | ||
- Updated documentation and examples. | ||
|
||
## [v1.0] - 2017-04-26 | ||
### Initial release | ||
- Established proper python program setup. | ||
|
||
## [v0.8] - 2015-09-04 | ||
### Initial tag for scoreboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM numenta/nupic | ||
|
||
# Plus Java so we can run HTM.Java as well | ||
RUN wget https://d3pxv6yz143wms.cloudfront.net/8.212.04.2/java-1.8.0-amazon-corretto-jdk_8.212.04-2_amd64.deb && \ | ||
apt-get update && apt-get install java-common && apt-get install -y --no-install-recommends apt-utils && \ | ||
dpkg --install java-1.8.0-amazon-corretto-jdk_8.212.04-2_amd64.deb | ||
|
||
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-amazon-corretto | ||
ENV PATH $JAVA_HOME/bin:$PATH | ||
|
||
ENV NAB /usr/local/src/nab | ||
|
||
ADD . $NAB | ||
|
||
# Run Numenta detectors | ||
RUN echo "Running numenta detectors in Python 2.7..." | ||
WORKDIR $NAB/nab/detectors/numenta | ||
RUN python -m pip install -r requirements.txt | ||
RUN python run.py --skipConfirmation | ||
|
||
# Run HTM.Java detector | ||
RUN echo "Running HTM.Java detector in Java 8 / Python 2.7..." | ||
WORKDIR $NAB/nab/detectors/htmjava/nab/detectors/htmjava | ||
RUN ./gradlew clean build | ||
WORKDIR $NAB/nab/detectors/htmjava | ||
RUN python run.py --skipConfirmation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: NAB | ||
channels: | ||
- defaults | ||
- conda-forge | ||
|
||
dependencies: | ||
- python=3.6 | ||
- pip | ||
|
||
# See requirements.txt | ||
- pandas==0.20.3 | ||
- simplejson==3.11.1 | ||
- boto3==1.9.134 | ||
- scikit-learn==0.21.1 | ||
|
||
- pip: | ||
- boto3 | ||
- botocore | ||
# Install NAB in development mode | ||
- -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.