Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 29a8663

Browse files
author
Anand Sanmukhani
authored
Merge pull request #152 from 4n4nd/update-prophet
Update dependencies
2 parents c418518 + 408c8a7 commit 29a8663

File tree

8 files changed

+424
-965
lines changed

8 files changed

+424
-965
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ RUN conda env create -f /tmp/environment.yml
1111
USER 1001
1212

1313
# Ensure that assigned uid has entry in /etc/passwd.
14-
CMD ./set_uid.sh && /opt/conda/envs/prophet-env/bin/python ${APP_FILE}
14+
CMD ./set_uid.sh && /opt/conda/envs/PAD/bin/python ${APP_FILE}

Pipfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ schedule = "*"
99
prometheus_client = "*"
1010
prometheus_api_client = "*"
1111
tornado = "*"
12-
fbprophet = "*"
12+
pystan = "==2.19.1.1"
13+
prophet = "*"
1314
dateparser = "*"
1415
mlflow = "*"
15-
keras = "*"
1616
numpy = "*"
1717
scikit-learn = "*"
1818
tensorflow = "*"

Pipfile.lock

Lines changed: 411 additions & 949 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

environment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
name: prophet-env
2+
name: PAD
33
channels:
44
- conda-forge
55
dependencies:
66
- python=3.8
77
- pip
8-
- fbprophet
8+
- prophet
99
- pip:
1010
- pandas
1111
- schedule
@@ -15,5 +15,5 @@ dependencies:
1515
- dateparser
1616
- mlflow
1717
- numpy
18-
- keras
18+
- tensorflow
1919
- scikit-learn

model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import datetime
33
import logging
44
import pandas
5-
from fbprophet import Prophet
5+
from prophet import Prophet
66
from prometheus_api_client import Metric
77

88
# Set up logging

model_lstm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""doctsring for packages."""
22
import logging
33
from prometheus_api_client import Metric
4-
from keras.models import Sequential
5-
from keras.layers import Dense
6-
from keras.layers import LSTM
4+
from tensorflow.keras.models import Sequential
5+
from tensorflow.keras.layers import Dense
6+
from tensorflow.keras.layers import LSTM
77

88
import numpy as np
99
from sklearn.preprocessing import MinMaxScaler

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ schedule
33
prometheus_client
44
prometheus_api_client
55
tornado
6-
fbprophet
6+
pystan==2.19.1.1
7+
prophet
78
mlflow
89
numpy
9-
Keras
1010
scikit-learn
11+
tensorflow

set_uid.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
cat /etc/passwd
2-
31
if [ `id -u` -ge 10000 ]; then
42
cat /etc/passwd | sed -e "s/^$NB_USER:/builder:/" > /tmp/passwd
53
echo "$NB_USER:x:`id -u`:`id -g`:,,,:/home/$NB_USER:/bin/bash" > /tmp/passwd
64
cat /tmp/passwd > /etc/passwd
75
rm /tmp/passwd
86
fi
9-
10-
cat /etc/passwd

0 commit comments

Comments
 (0)