Skip to content

Commit

Permalink
Merge pull request #47 from georgian-io/hotfix/ver-bump
Browse files Browse the repository at this point in the history
Dependency Version Bump
  • Loading branch information
benjaminye authored Mar 8, 2024
2 parents b12c234 + 2e8b1d9 commit 9576a06
Show file tree
Hide file tree
Showing 8 changed files with 2,802 additions and 2,476 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,6 @@ logs
/docs/source/generated_api/
/docs/source/README.md
/docs/build/

# Distro
/dist
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
# FROM ufoym/deepo:all-jupyter-py38
FROM nvidia/cuda:11.2.1-cudnn8-devel-ubuntu20.04
FROM nvidia/cuda:12.1.0-cudnn8-devel-ubuntu20.04

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y --no-install-recommends git python3.8 python3 python3-pip
Expand Down
3 changes: 2 additions & 1 deletion oats/_utils/dlutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def __init__(self, d_model, nhead, dim_feedforward=16, dropout=0):

self.activation = nn.LeakyReLU(True)

def forward(self, src, src_mask=None, src_key_padding_mask=None):
def forward(self, src, src_mask=None, src_key_padding_mask=None, **kwargs):
src2 = self.self_attn(src, src, src)[0]
src = src + self.dropout1(src2)
src2 = self.linear2(self.dropout(self.activation(self.linear1(src))))
Expand Down Expand Up @@ -291,6 +291,7 @@ def forward(
memory_mask=None,
tgt_key_padding_mask=None,
memory_key_padding_mask=None,
**kwargs
):
tgt2 = self.self_attn(tgt, tgt, tgt)[0]
tgt = tgt + self.dropout1(tgt2)
Expand Down
2 changes: 1 addition & 1 deletion oats/preprocessor/spectral_residual.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _extrapolate_next(values):
"""

last_value = values[-1]
slope = [(last_value - v) / i for (i, v) in enumerate(values[::-1])]
slope = [(last_value - v) / (i+1e-5) for (i, v) in enumerate(values[::-1])]
slope[0] = 0
next_values = last_value + np.cumsum(slope)

Expand Down
5,060 changes: 2,631 additions & 2,429 deletions poetry.lock

Large diffs are not rendered by default.

39 changes: 20 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyoats"
version = "0.1.2"
version = "0.1.3"
description = "Quick and Easy Time Series Outlier Detection"
authors = ["Benjamin Ye <[email protected]>"]
license = "Apache-2.0"
Expand All @@ -10,26 +10,27 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.8, <3.11"
numpy = ">=1.22.4"
darts = "0.23.0"
statsmodels = "^0.13.2"
scipy = "1.7.3"
pyod = "1.0.4"
stumpy = "^1.11.1"
jenkspy = "^0.2.2"
optuna = "^2.10.0"
statsforecast = "1.0.0"
tensorflow = {version = ">=2.9.3", markers = "sys_platform != 'darwin'"}
tensorflow-macos = {version = ">=2.9.2 <2.10", markers = "sys_platform == 'darwin'"}
tensorflow-metal = {version = "0.5.0 < 0.6.0", markers = "sys_platform == 'darwin'"}
tqdm = "^4.64.1"
python = ">=3.9, <3.12"
darts = "0.28.0"
statsmodels = "^0.14.1"
pyod = "1.1.3"
stumpy = "^1.12.0"
jenkspy = "^0.2.4"
optuna = "^2.10.1"
statsforecast = "^1.7.3"
tensorflow = {version = ">=2.15.0", markers = "sys_platform != 'darwin'"}
tensorflow-macos = {version = ">=2.15.0", markers = "sys_platform == 'darwin'"}
tensorflow-metal = {version = "0.5.0", markers = "sys_platform == 'darwin'"}
tqdm = "^4.66.2"
lightgbm = "^4.3.0"
numpy = "^1.26.4"
scipy = "^1.12.0"

[tool.poetry.group.dev.dependencies]
pytest = "^7.1.3"
black = "^22.8.0"
pylint = "^2.15.3"
Sphinx = "^5.2.3"
pytest = "^7.4.4"
black = "^22.12.0"
pylint = "^2.17.7"
Sphinx = "^5.3.0"
pydata-sphinx-theme = "^0.10.1"
myst-parser = "^0.18.1"

Expand Down
167 changes: 143 additions & 24 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,143 @@
optuna==2.10.0
darts==0.23
tensorboard==2.9.1
numpy==1.22.4
pandas==1.4.3
statsmodels==0.13.2
scipy==1.9.0
pyod==1.0.4
stumpy==1.11.1
pytest==7.1.2
jenkspy==0.2.2
statsforecast==1.0.0
tensorflow==2.9.3; sys_platform != 'darwin'
tensorflow-macos==2.9.2; sys_platform == 'darwin'
tensorflow-metal==0.5.0; sys_platform == 'darwin'
torch==1.13.1
pytorch-lightning==1.6.5

sphinx
black
pylint
Sphinx
pydata-sphinx-theme
myst-parser
absl-py==2.1.0 ; python_version >= "3.8" and python_version < "3.11"
adagio==0.2.4 ; python_version >= "3.8" and python_version < "3.11"
aiohttp==3.9.3 ; python_version >= "3.8" and python_version < "3.11"
aiosignal==1.3.1 ; python_version >= "3.8" and python_version < "3.11"
alembic==1.13.1 ; python_version >= "3.8" and python_version < "3.11"
antlr4-python3-runtime==4.11.1 ; python_version >= "3.8" and python_version < "3.11"
appdirs==1.4.4 ; python_version >= "3.8" and python_version < "3.11"
astunparse==1.6.3 ; python_version >= "3.8" and python_version < "3.11"
async-timeout==4.0.3 ; python_version >= "3.8" and python_version < "3.11"
attrs==23.2.0 ; python_version >= "3.8" and python_version < "3.11"
autopage==0.5.2 ; python_version >= "3.8" and python_version < "3.11"
cachetools==5.3.3 ; python_version >= "3.8" and python_version < "3.11"
certifi==2024.2.2 ; python_version >= "3.8" and python_version < "3.11"
charset-normalizer==3.3.2 ; python_version >= "3.8" and python_version < "3.11"
cliff==4.6.0 ; python_version >= "3.8" and python_version < "3.11"
cloudpickle==3.0.0 ; python_version >= "3.8" and python_version < "3.11"
cmaes==0.10.0 ; python_version >= "3.8" and python_version < "3.11"
cmd2==2.4.3 ; python_version >= "3.8" and python_version < "3.11"
colorama==0.4.6 ; python_version >= "3.8" and python_version < "3.11" and (platform_system == "Windows" or sys_platform == "win32")
colorlog==6.8.2 ; python_version >= "3.8" and python_version < "3.11"
contourpy==1.1.1 ; python_version >= "3.8" and python_version < "3.11"
cycler==0.12.1 ; python_version >= "3.8" and python_version < "3.11"
cython==3.0.9 ; python_version >= "3.8" and python_version < "3.11"
darts==0.28.0 ; python_version >= "3.8" and python_version < "3.11"
filelock==3.13.1 ; python_version >= "3.8" and python_version < "3.11"
flatbuffers==24.3.7 ; python_version >= "3.8" and python_version < "3.11"
fonttools==4.49.0 ; python_version >= "3.8" and python_version < "3.11"
frozenlist==1.4.1 ; python_version >= "3.8" and python_version < "3.11"
fs==2.4.16 ; python_version >= "3.8" and python_version < "3.11"
fsspec==2024.2.0 ; python_version >= "3.8" and python_version < "3.11"
fsspec[http]==2024.2.0 ; python_version >= "3.8" and python_version < "3.11"
fugue-sql-antlr==0.2.0 ; python_version >= "3.8" and python_version < "3.11"
fugue==0.8.7 ; python_version >= "3.8" and python_version < "3.11"
gast==0.4.0 ; python_version >= "3.8" and python_version < "3.11"
google-auth-oauthlib==1.0.0 ; python_version >= "3.8" and python_version < "3.11"
google-auth==2.28.1 ; python_version >= "3.8" and python_version < "3.11"
google-pasta==0.2.0 ; python_version >= "3.8" and python_version < "3.11"
greenlet==3.0.3 ; python_version >= "3.8" and python_version < "3.11" and (platform_machine == "win32" or platform_machine == "WIN32" or platform_machine == "AMD64" or platform_machine == "amd64" or platform_machine == "x86_64" or platform_machine == "ppc64le" or platform_machine == "aarch64")
grpcio==1.62.1 ; python_version >= "3.8" and python_version < "3.11"
h5py==3.10.0 ; python_version >= "3.8" and python_version < "3.11"
holidays==0.44 ; python_version >= "3.8" and python_version < "3.11"
idna==3.6 ; python_version >= "3.8" and python_version < "3.11"
importlib-metadata==7.0.2 ; python_version >= "3.8" and python_version < "3.10"
importlib-resources==6.1.3 ; python_version >= "3.8" and python_version < "3.10"
jax==0.4.13 ; python_version >= "3.8" and python_version < "3.11"
jenkspy==0.2.4 ; python_version >= "3.8" and python_version < "3.11"
jinja2==3.1.3 ; python_version >= "3.8" and python_version < "3.11"
joblib==1.3.2 ; python_version >= "3.8" and python_version < "3.11"
keras==2.12.0 ; python_version >= "3.8" and python_version < "3.11"
kiwisolver==1.4.5 ; python_version >= "3.8" and python_version < "3.11"
libclang==16.0.6 ; python_version >= "3.8" and python_version < "3.11"
lightgbm==4.3.0 ; python_version >= "3.8" and python_version < "3.11"
lightning-utilities==0.10.1 ; python_version >= "3.8" and python_version < "3.11"
llvmlite==0.41.1 ; python_version >= "3.8" and python_version < "3.11"
mako==1.3.2 ; python_version >= "3.8" and python_version < "3.11"
markdown==3.5.2 ; python_version >= "3.8" and python_version < "3.11"
markupsafe==2.1.5 ; python_version >= "3.8" and python_version < "3.11"
matplotlib==3.7.5 ; python_version >= "3.8" and python_version < "3.11"
ml-dtypes==0.2.0 ; python_version >= "3.8" and python_version < "3.11"
mpmath==1.3.0 ; python_version >= "3.8" and python_version < "3.11"
multidict==6.0.5 ; python_version >= "3.8" and python_version < "3.11"
networkx==3.1 ; python_version >= "3.8" and python_version < "3.11"
nfoursid==1.0.1 ; python_version >= "3.8" and python_version < "3.11"
numba==0.58.1 ; python_version >= "3.8" and python_version < "3.11"
numpy==1.22.4 ; python_version >= "3.8" and python_version < "3.11"
nvidia-cublas-cu12==12.1.3.1 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-cuda-cupti-cu12==12.1.105 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-cuda-nvrtc-cu12==12.1.105 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-cuda-runtime-cu12==12.1.105 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-cudnn-cu12==8.9.2.26 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-cufft-cu12==11.0.2.54 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-curand-cu12==10.3.2.106 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-cusolver-cu12==11.4.5.107 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-cusparse-cu12==12.1.0.106 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-nccl-cu12==2.19.3 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-nvjitlink-cu12==12.4.99 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
nvidia-nvtx-cu12==12.1.105 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version >= "3.8" and python_version < "3.11"
oauthlib==3.2.2 ; python_version >= "3.8" and python_version < "3.11"
opt-einsum==3.3.0 ; python_version >= "3.8" and python_version < "3.11"
optuna==2.10.1 ; python_version >= "3.8" and python_version < "3.11"
packaging==23.2 ; python_version >= "3.8" and python_version < "3.11"
pandas==1.5.3 ; python_version >= "3.8" and python_version < "3.11"
patsy==0.5.6 ; python_version >= "3.8" and python_version < "3.11"
pbr==6.0.0 ; python_version >= "3.8" and python_version < "3.11"
pillow==10.2.0 ; python_version >= "3.8" and python_version < "3.11"
pmdarima==2.0.4 ; python_version >= "3.8" and python_version < "3.11"
prettytable==3.10.0 ; python_version >= "3.8" and python_version < "3.11"
protobuf==4.25.3 ; python_version >= "3.8" and python_version < "3.11"
pyarrow==15.0.1 ; python_version >= "3.8" and python_version < "3.11"
pyasn1-modules==0.3.0 ; python_version >= "3.8" and python_version < "3.11"
pyasn1==0.5.1 ; python_version >= "3.8" and python_version < "3.11"
pyod==1.1.3 ; python_version >= "3.8" and python_version < "3.11"
pyparsing==3.1.2 ; python_version >= "3.8" and python_version < "3.11"
pyperclip==1.8.2 ; python_version >= "3.8" and python_version < "3.11"
pyreadline3==3.4.1 ; python_version >= "3.8" and python_version < "3.11" and sys_platform == "win32"
python-dateutil==2.9.0.post0 ; python_version >= "3.8" and python_version < "3.11"
pytorch-lightning==2.2.1 ; python_version >= "3.8" and python_version < "3.11"
pytz==2024.1 ; python_version >= "3.8" and python_version < "3.11"
pyyaml==6.0.1 ; python_version >= "3.8" and python_version < "3.11"
qpd==0.4.4 ; python_version >= "3.8" and python_version < "3.11"
requests-oauthlib==1.3.1 ; python_version >= "3.8" and python_version < "3.11"
requests==2.31.0 ; python_version >= "3.8" and python_version < "3.11"
rsa==4.9 ; python_version >= "3.8" and python_version < "3.11"
scikit-learn==1.3.2 ; python_version >= "3.8" and python_version < "3.11"
scipy==1.7.3 ; python_version >= "3.8" and python_version < "3.11"
setuptools==69.1.1 ; python_version >= "3.8" and python_version < "3.11"
shap==0.44.1 ; python_version >= "3.8" and python_version < "3.11"
six==1.15.0 ; python_version >= "3.8" and python_version < "3.11"
slicer==0.0.7 ; python_version >= "3.8" and python_version < "3.11"
sqlalchemy==2.0.28 ; python_version >= "3.8" and python_version < "3.11"
sqlglot==22.2.1 ; python_version >= "3.8" and python_version < "3.11"
statsforecast==1.7.3 ; python_version >= "3.8" and python_version < "3.11"
statsmodels==0.14.1 ; python_version >= "3.8" and python_version < "3.11"
stevedore==5.2.0 ; python_version >= "3.8" and python_version < "3.11"
stumpy==1.12.0 ; python_version >= "3.8" and python_version < "3.11"
sympy==1.12 ; python_version >= "3.8" and python_version < "3.11"
tbats==1.1.3 ; python_version >= "3.8" and python_version < "3.11"
tensorboard-data-server==0.7.2 ; python_version >= "3.8" and python_version < "3.11"
tensorboard==2.12.3 ; python_version >= "3.8" and python_version < "3.11"
tensorboardx==2.6.2.2 ; python_version >= "3.8" and python_version < "3.11"
tensorflow-estimator==2.12.0 ; python_version >= "3.8" and python_version < "3.11"
tensorflow-io-gcs-filesystem==0.36.0 ; python_version >= "3.8" and python_version < "3.11" and (platform_machine != "arm64" or platform_system != "Darwin")
tensorflow-macos==2.12.0 ; python_version >= "3.8" and python_version < "3.11" and sys_platform == "darwin"
tensorflow-metal==0.5.0 ; python_version >= "3.8" and python_version < "3.11" and sys_platform == "darwin"
tensorflow==2.12.0 ; python_version >= "3.8" and python_version < "3.11" and sys_platform != "darwin"
termcolor==2.4.0 ; python_version >= "3.8" and python_version < "3.11"
threadpoolctl==3.3.0 ; python_version >= "3.8" and python_version < "3.11"
torch==2.2.1 ; python_version >= "3.8" and python_version < "3.11"
torchmetrics==1.3.1 ; python_version >= "3.8" and python_version < "3.11"
tqdm==4.66.2 ; python_version >= "3.8" and python_version < "3.11"
triad==0.9.5 ; python_version >= "3.8" and python_version < "3.11"
triton==2.2.0 ; platform_system == "Linux" and platform_machine == "x86_64" and python_version < "3.11" and python_version >= "3.8"
typing-extensions==4.10.0 ; python_version >= "3.8" and python_version < "3.11"
urllib3==2.2.1 ; python_version >= "3.8" and python_version < "3.11"
utilsforecast==0.1.1 ; python_version >= "3.8" and python_version < "3.11"
wcwidth==0.2.13 ; python_version >= "3.8" and python_version < "3.11"
werkzeug==3.0.1 ; python_version >= "3.8" and python_version < "3.11"
wheel==0.42.0 ; python_version >= "3.8" and python_version < "3.11"
wrapt==1.14.1 ; python_version >= "3.8" and python_version < "3.11"
xarray==2023.1.0 ; python_version >= "3.8" and python_version < "3.11"
xgboost==2.0.3 ; python_version >= "3.8" and python_version < "3.11"
yarl==1.9.4 ; python_version >= "3.8" and python_version < "3.11"
zipp==3.17.0 ; python_version >= "3.8" and python_version < "3.10"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="pyoats",
version="0.1.2",
version="0.1.3",
description="Quick and Easy Time Series Anomaly Detection",
author="Benjamin Ye, Georgian Partners LP",
author_email="[email protected]",
Expand Down

0 comments on commit 9576a06

Please sign in to comment.