Skip to content

Commit

Permalink
Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
ukclivecox committed Mar 28, 2017
2 parents 2a89814 + c7f913a commit 72f66e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docker/examples/anomaly_detection/inne/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ ENV SELDON_HOME=/home/seldon
ENV PYTHONPATH=/home/seldon

COPY AnomalyDetection.py $SELDON_HOME/AnomalyDetection.py
COPY anomaly_wrapper.py $SELDON_HOME/anomaly_wrapper.py
#COPY anomaly_wrapper.py $SELDON_HOME/anomaly_wrapper.py

COPY inne_pipeline.py $SELDON_HOME/inne_pipeline.py
COPY create-json.py $SELDON_HOME/create-json.py
COPY DataGenerator.py $SELDON_HOME/DataGenerator.py

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
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

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

Expand Down
4 changes: 2 additions & 2 deletions docker/examples/anomaly_detection/inne/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL:=/bin/bash

SELDON_PYTHON_PACKAGE_VERSION=2.2
SELDON_SIMULATION_INNE_IMAGE_VERSION=2.0.7
SELDON_PYTHON_PACKAGE_VERSION=2.2.1
SELDON_SIMULATION_INNE_IMAGE_VERSION=1.0
IMAGE_NAME=simulation_inne

Dockerfile: Dockerfile.in
Expand Down
7 changes: 3 additions & 4 deletions docker/examples/anomaly_detection/inne/inne_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import sys, getopt, argparse
import seldon.anomaly_wrapper as aw
import seldon.pipeline.basic_transforms as bt
import seldon.pipeline.util as sutl
import seldon.pipeline.auto_transforms as pauto
from sklearn.pipeline import Pipeline
#import anomaly_wrapper as aw
#import AnomalyDetection as anod
import seldon.anomaly_wrapper as aw
import seldon.anomaly.AnomalyDetection as anod
import AnomalyDetection as anod
#import seldon.anomaly.AnomalyDetection as anod
import sys
import logging

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

pw = sutl.Pipeline_wrapper()
df = pw.create_dataframe_from_files(events)
logger.debug(df)
df2 = p.fit_transform(df)
pw.save_pipeline(p,models)

Expand Down
2 changes: 1 addition & 1 deletion python/seldon/anomaly/AnomalyDetection.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
ch.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
ch.setFormatter(formatter)
logger.addHandler(ch)
Expand Down

0 comments on commit 72f66e0

Please sign in to comment.