Skip to content

Commit 72f66e0

Browse files
committed
Merge branch 'master' into release
2 parents 2a89814 + c7f913a commit 72f66e0

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

docker/examples/anomaly_detection/inne/Dockerfile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ ENV SELDON_HOME=/home/seldon
44
ENV PYTHONPATH=/home/seldon
55

66
COPY AnomalyDetection.py $SELDON_HOME/AnomalyDetection.py
7-
COPY anomaly_wrapper.py $SELDON_HOME/anomaly_wrapper.py
7+
#COPY anomaly_wrapper.py $SELDON_HOME/anomaly_wrapper.py
88

99
COPY inne_pipeline.py $SELDON_HOME/inne_pipeline.py
1010
COPY create-json.py $SELDON_HOME/create-json.py
1111
COPY DataGenerator.py $SELDON_HOME/DataGenerator.py
1212

13-
RUN mkdir -p $SELDON_HOME/data && cd $SELDON_HOME/ && python DataGenerator.py --std 1 --nb-samples 2000 --dim 4 --nb-clusters 3 --fout data/simulation.csv
13+
RUN mkdir -p $SELDON_HOME/data && cd $SELDON_HOME/ && python DataGenerator.py --std 0.1 --nb-samples 1000 --dim 4 --nb-clusters 3 --fout data/simulation.csv
1414

1515
RUN mkdir -p $SELDON_HOME/data/simulation/events/1 && cat $SELDON_HOME/data/simulation.csv | python $SELDON_HOME/create-json.py | shuf > $SELDON_HOME/data/simulation/events/1/simulation.json
1616

docker/examples/anomaly_detection/inne/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SHELL:=/bin/bash
22

3-
SELDON_PYTHON_PACKAGE_VERSION=2.2
4-
SELDON_SIMULATION_INNE_IMAGE_VERSION=2.0.7
3+
SELDON_PYTHON_PACKAGE_VERSION=2.2.1
4+
SELDON_SIMULATION_INNE_IMAGE_VERSION=1.0
55
IMAGE_NAME=simulation_inne
66

77
Dockerfile: Dockerfile.in

docker/examples/anomaly_detection/inne/inne_pipeline.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import sys, getopt, argparse
2+
import seldon.anomaly_wrapper as aw
23
import seldon.pipeline.basic_transforms as bt
34
import seldon.pipeline.util as sutl
45
import seldon.pipeline.auto_transforms as pauto
56
from sklearn.pipeline import Pipeline
67
#import anomaly_wrapper as aw
7-
#import AnomalyDetection as anod
8-
import seldon.anomaly_wrapper as aw
9-
import seldon.anomaly.AnomalyDetection as anod
8+
import AnomalyDetection as anod
9+
#import seldon.anomaly.AnomalyDetection as anod
1010
import sys
1111
import logging
1212

@@ -22,7 +22,6 @@ def run_pipeline(events,models):
2222

2323
pw = sutl.Pipeline_wrapper()
2424
df = pw.create_dataframe_from_files(events)
25-
logger.debug(df)
2625
df2 = p.fit_transform(df)
2726
pw.save_pipeline(p,models)
2827

python/seldon/anomaly/AnomalyDetection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
logger = logging.getLogger(__name__)
99
logger.setLevel(logging.DEBUG)
1010
ch = logging.StreamHandler()
11-
ch.setLevel(logging.DEBUG)
11+
ch.setLevel(logging.INFO)
1212
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
1313
ch.setFormatter(formatter)
1414
logger.addHandler(ch)

0 commit comments

Comments
 (0)