File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed
docker/examples/anomaly_detection/inne Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ ENV SELDON_HOME=/home/seldon
44ENV PYTHONPATH=/home/seldon
55
66COPY 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
99COPY inne_pipeline.py $SELDON_HOME/inne_pipeline.py
1010COPY create-json.py $SELDON_HOME/create-json.py
1111COPY 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
1515RUN 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
Original file line number Diff line number Diff line change 11SHELL:=/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
55IMAGE_NAME=simulation_inne
66
77Dockerfile: Dockerfile.in
Original file line number Diff line number Diff line change 11import sys, getopt, argparse
2+ import seldon.anomaly_wrapper as aw
23import seldon.pipeline.basic_transforms as bt
34import seldon.pipeline.util as sutl
45import seldon.pipeline.auto_transforms as pauto
56from 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
1010import sys
1111import 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
Original file line number Diff line number Diff line change 88logger = logging.getLogger(__name__)
99logger.setLevel(logging.DEBUG)
1010ch = logging.StreamHandler()
11- ch.setLevel(logging.DEBUG )
11+ ch.setLevel(logging.INFO )
1212formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
1313ch.setFormatter(formatter)
1414logger.addHandler(ch)
You can’t perform that action at this time.
0 commit comments