Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
tampe125 committed Mar 8, 2016
2 parents c19b602 + 7fb5c73 commit 71112e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/runner/classify.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from csv import reader as csv_reader
from os import path, makedirs
from scipy import genfromtxt as scipy_genfromtxt
from numpy import array as np_array
from shutil import copyfile as shutil_copyfile, rmtree as shutil_rmtree
from lib.runner.abstract import AbstractCommand
from lib.exceptions.exceptions import RunningError
Expand Down Expand Up @@ -51,7 +52,8 @@ def run(self):
if line[0] == 'Trash score':
continue

features = line[0:3]
features = np_array(line[0:3])
features = features.reshape(1, -1)
label = clf.predict(features)

if label == 0:
Expand Down

0 comments on commit 71112e5

Please sign in to comment.