Skip to content

Commit

Permalink
Adapt remaining algorithms (#39)
Browse files Browse the repository at this point in the history
* feat: adapt remaining algorithms with

* fix(pcc): include manifest in Docker image
  • Loading branch information
Sebastian Schmidl authored Dec 22, 2023
1 parent d9b74b0 commit 492b818
Show file tree
Hide file tree
Showing 54 changed files with 132 additions and 86 deletions.
2 changes: 1 addition & 1 deletion numenta_htm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/timeeval/python2-base:0.3.0 as build
FROM ghcr.io/timeeval/python2-base:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses="GPL-3.0"
Expand Down
6 changes: 4 additions & 2 deletions ocean_wnn/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM registry.gitlab.hpi.de/akita/i/python3-torch:0.2.5
FROM ghcr.io/timeeval/python3-torch:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.py"

# install algorithm dependencies
COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt

COPY algorithm.py /app/
COPY ocean_wnn /app/ocean_wnn
COPY manifest.json /app/
COPY algorithm.py /app/
2 changes: 1 addition & 1 deletion ocean_wnn/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "OceanWNN",
"description": "Implementation of https://doi.org/10.1016/j.oceaneng.2019.106129",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Yi Wang, Linsheng Han, Wei Liu, Shujia Yang, Yanbo Gao",
"language": "Python",
"type": "Detector",
Expand Down
4 changes: 3 additions & 1 deletion omnianomaly/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM registry.gitlab.hpi.de/akita/i/python36-base:0.2.5
FROM ghcr.io/timeeval/python36-base:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.py"

Expand All @@ -12,4 +13,5 @@ COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt

COPY omni_anomaly /app/omni_anomaly
COPY manifest.json /app/
COPY algorithm.py /app/
2 changes: 1 addition & 1 deletion omnianomaly/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "OmniAnomaly",
"description": "Implementation of https://doi.org/10.1145/3292500.3330672",
"inputDimensionality": "multivariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Ya Su, Youjian Zhao, Chenhao Niu, Rong Liu, Wei Sun, Dan Pei",
"language": "Python",
"type": "Detector",
Expand Down
11 changes: 6 additions & 5 deletions pcc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM registry.gitlab.hpi.de/akita/i/pyod:0.2.5
FROM ghcr.io/timeeval/pyod:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.py"


# install algorithm dependencies
COPY requirements.txt .
RUN pip install -r ./requirements.txt
COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt

COPY algorithm.py .
COPY manifest.json /app/
COPY algorithm.py /app/
2 changes: 1 addition & 1 deletion pcc/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "PCC",
"description": "Implementation of http://citeseerx.ist.psu.edu/viewdoc/summary;jsessionid=003008C2CF2373B9C332D4A1DB035515?doi=10.1.1.66.299.",
"inputDimensionality": "multivariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Mei-ling Shyu, Shu-ching Chen, Kanoksri Sarinnapakorn, Liwu Chang",
"language": "Python",
"type": "Detector",
Expand Down
4 changes: 3 additions & 1 deletion pci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5
FROM ghcr.io/timeeval/python3-base:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.py"

Expand All @@ -9,4 +10,5 @@ COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt

COPY pci /app/pci
COPY manifest.json /app/
COPY algorithm.py /app/
2 changes: 1 addition & 1 deletion pci/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "PCI",
"description": "Implementation of https://doi.org/10.1155/2014/879736",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Yufeng Yu, Yuelong Zhu, Shijin Li, Dingsheng Wan",
"language": "Python",
"type": "Detector",
Expand Down
12 changes: 7 additions & 5 deletions phasespace_svm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5
FROM ghcr.io/timeeval/python3-base:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.py"

# install algorithm dependencies
COPY requirements.txt ./
RUN pip install -r ./requirements.txt
COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt

COPY phasespace.py .
COPY algorithm.py .
COPY phasespace.py /app/
COPY manifest.json /app/
COPY algorithm.py /app/
2 changes: 1 addition & 1 deletion phasespace_svm/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "PhaseSpace-SVM",
"description": "Implementation of https://doi.org/10.1109/IJCNN.2003.1223670.",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Junshui Ma and Simon Perkins",
"language": "Python",
"type": "Detector",
Expand Down
2 changes: 1 addition & 1 deletion pst/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ghcr.io/timeeval/r4-base:0.3.2

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.licenses="GPL-3.0"

# install R-install requirements
RUN set -eux; \
Expand Down
13 changes: 7 additions & 6 deletions random_black_forest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5
FROM ghcr.io/timeeval/python3-base:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.py"

COPY ./requirements.txt .
RUN pip install -r requirements.txt
COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt

COPY ./algorithm.py .
COPY ./model.py .
COPY ./manifest.json .
COPY model.py /app/
COPY manifest.json /app/
COPY algorithm.py /app/
2 changes: 1 addition & 1 deletion random_black_forest/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "An ensemble of multiple multi-output random forest regressors based on different feature subsets (requested by RollsRoyce). The forecasting error is used as anomaly score.",
"inputDimensionality": "multivariate",
"learningType": "semi-supervised",
"version": "0.1",
"version": "0.3.0",
"authors": "Sebastian Schmidl",
"language": "Python",
"type": "Detector",
Expand Down
4 changes: 3 additions & 1 deletion robust_pca/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5
FROM ghcr.io/timeeval/python3-base:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.py"

Expand All @@ -9,4 +10,5 @@ COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt

COPY robust_pca /app/robust_pca
COPY manifest.json /app/
COPY algorithm.py /app/
2 changes: 1 addition & 1 deletion robust_pca/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "RobustPCA",
"description": "Implementation of https://arxiv.org/pdf/1801.01571.pdf",
"inputDimensionality": "multivariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Randy Paffenroth, Kathleen Kay, Les Servi",
"language": "Python",
"type": "Detector",
Expand Down
7 changes: 4 additions & 3 deletions s_h_esd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5
FROM ghcr.io/timeeval/python3-base:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses="GPL-3.0"

ENV ALGORITHM_MAIN="/app/algorithm.py"

COPY requirements.txt .
RUN pip install -r requirements.txt
COPY requirements.txt /app/
RUN pip install -r /app/requirements.txt

COPY . /app/
2 changes: 1 addition & 1 deletion s_h_esd/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "S-H-ESD (Twitter)",
"description": "Implementation of http://citeseerx.ist.psu.edu/viewdoc/summary;jsessionid=003008C2CF2373B9C332D4A1DB035515?doi=10.1.1.66.299",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Jordan Hochenbaum, Owen S. Vallis, Arun Kejarival",
"language": "Python",
"type": "Detector",
Expand Down
2 changes: 1 addition & 1 deletion sand/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SAND (unsupervised subsequence anomaly detection in data streams.))
# SAND (unsupervised subsequence anomaly detection in data streams.)

> **Restricted Access!!**
Expand Down
2 changes: 1 addition & 1 deletion sand/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "SAND",
"description": "Implementation of SAND described in http://www.vldb.org/pvldb/vol14/p1717-boniol.pdf.",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Sebastian Schmidl",
"language": "Python",
"type": "Detector",
Expand Down
13 changes: 8 additions & 5 deletions sarima/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5
FROM ghcr.io/timeeval/python3-base:0.3.0

LABEL maintainer="[email protected]"
# custom license has no abbreviation

ENV ALGORITHM_MAIN="/app/algorithm.py"

COPY requirements.txt .
COPY requirements.txt /app/
RUN set -eux; \
pip install --no-cache-dir -r requirements.txt; \
pip install --no-cache-dir -r /app/requirements.txt; \
find /usr/local -depth \
\( \
\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \
Expand All @@ -15,5 +16,7 @@ RUN set -eux; \
\) -exec rm -rf '{}' +; \
rm -rf /tmp/* /var/tmp/* ~/.cache/pip

COPY sarima.py .
COPY algorithm.py .
COPY sarima.py /app/
COPY LICENSE /app/
COPY manifest.json /app/
COPY algorithm.py /app/
3 changes: 3 additions & 0 deletions sarima/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ All rights reserved.
Copyright (c) 2009-2018 statsmodels Developers.
All rights reserved.

Copyright (C) 2020-2023 Sebastian Schmidl and Phillip Wenig.
All rights reserved.


Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion sarima/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "SARIMA",
"description": "Implementation of SARIMA method described in https://milets18.github.io/papers/milets18_paper_19.pdf.",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Sebastian Schmidl",
"language": "Python",
"type": "Detector",
Expand Down
2 changes: 1 addition & 1 deletion series2graph/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Series2Graph",
"description": "Implementation of https://doi.org/10.14778/3407790.3407792.",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Paul Boniol, Themis Palpanas, Mohammed Meftah, Emmanuel Remy",
"language": "Python",
"type": "Detector",
Expand Down
6 changes: 4 additions & 2 deletions sr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 as build
FROM ghcr.io/timeeval/python3-base:0.3.0 as build

COPY anomalydetector /app/anomalydetector

Expand All @@ -11,11 +11,13 @@ RUN set -eux; \
RUN pip install Cython
RUN cd /app/anomalydetector/; python setup.py install

FROM registry.gitlab.hpi.de/akita/i/python3-base:0.2.5 as eval
FROM ghcr.io/timeeval/python3-base:0.3.0 as eval

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.py"

COPY --from=build /usr/local/lib/python3.7/site-packages /usr/local/lib/python3.7/site-packages
COPY manifest.json /app/
COPY algorithm.py /app/
2 changes: 1 addition & 1 deletion sr/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "Spectral Residual (SR)",
"description": "Implementation of https://doi.org/10.1145/3292500.3330680",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Hansheng Ren, Bixiong Xu, Yujing Wang, Chao Yi, Congrui Huang, Xiaoyu Kou, Tony Xing, Mao Yang, Jie Tong, Qi Zhang",
"language": "Python",
"type": "Detector",
Expand Down
6 changes: 4 additions & 2 deletions sr_cnn/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.gitlab.hpi.de/akita/i/python3-torch:0.2.5 as build
FROM ghcr.io/timeeval/python3-base:0.3.0 as build

COPY anomalydetector /app/anomalydetector

Expand All @@ -7,12 +7,14 @@ RUN apt-get install build-essential -y
RUN pip install --no-cache-dir Cython tqdm torchvision==0.8.2
RUN cd /app/anomalydetector/; python setup.py install

FROM registry.gitlab.hpi.de/akita/i/python3-torch:0.2.5 as eval
FROM ghcr.io/timeeval/python3-base:0.3.0 as eval

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.py"

COPY --from=build /usr/local/lib/python3.7/site-packages /usr/local/lib/python3.7/site-packages
COPY srcnn /app/srcnn
COPY manifest.json /app/
COPY algorithm.py /app/
2 changes: 1 addition & 1 deletion sr_cnn/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "SR-CNN",
"description": "Implementation of https://doi.org/10.1145/3292500.3330680",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Hansheng Ren, Bixiong Xu, Yujing Wang, Chao Yi, Congrui Huang, Xiaoyu Kou, Tony Xing, Mao Yang, Jie Tong, Qi Zhang",
"language": "Python",
"type": "Detector",
Expand Down
3 changes: 2 additions & 1 deletion stamp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM registry.gitlab.hpi.de/akita/i/tsmp:0.2.5
FROM ghcr.io/timeeval/tsmp:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.r"

Expand Down
2 changes: 1 addition & 1 deletion stamp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "STAMP",
"description": "Implementation of https://doi.org/10.1109/ICDM.2016.0179.",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Chin-Chia Michael Yeh, Yan Zhu, Liudmila Ulanova, Nurjahan Begum, Yifei Ding, Hoang Anh Dau, Diego Furtado Silva, Abdullah Mueen, Eamonn Keogh",
"language": "R",
"type": "Detector",
Expand Down
3 changes: 2 additions & 1 deletion stomp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM registry.gitlab.hpi.de/akita/i/tsmp:0.2.5
FROM ghcr.io/timeeval/tsmp:0.3.0

LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses=MIT

ENV ALGORITHM_MAIN="/app/algorithm.r"

Expand Down
2 changes: 1 addition & 1 deletion stomp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "STOMP",
"description": "Implementation of https://doi.org/10.1109/ICDM.2016.0085.",
"inputDimensionality": "univariate",
"version": "0.1",
"version": "0.3.0",
"authors": "Yan Zhu, Zachary Zimmerman, Nader Shakibay Senobari, Chin-Chia Michael Yeh, Gareth Funning, Abdullah Mueen, Philip Brisk, Eamonn Keogh",
"language": "R",
"type": "Detector",
Expand Down
Loading

0 comments on commit 492b818

Please sign in to comment.