Skip to content

Commit

Permalink
disable gp beacuse its very slow in practice
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed May 5, 2018
1 parent 733bb97 commit a79bdf4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/ai/src/learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def do_classification(self, index, name):
"""
if name == 'Gaussian Process':
return

t = time.time()
try:
prediction = self.algorithms[
Expand Down Expand Up @@ -175,8 +175,8 @@ def do_classification(self, index, name):
# except Exception as e:
# self.logger.error(str(e))

self.logger.debug("{} {:d} ms".format(
name, int(1000 * (t - time.time()))))
# self.logger.debug("{} {:d} ms".format(
# name, int(1000 * (t - time.time()))))
self.results[index] = predict_payload

@timeout(10)
Expand Down Expand Up @@ -224,7 +224,7 @@ def learn(self, fname):
"Nearest Neighbors",
"Linear SVM",
"RBF SVM",
"Gaussian Process",
# "Gaussian Process",
"Decision Tree",
"Random Forest",
"Neural Net",
Expand All @@ -235,7 +235,7 @@ def learn(self, fname):
KNeighborsClassifier(3),
SVC(kernel="linear", C=0.025, probability=True),
SVC(gamma=2, C=1, probability=True),
GaussianProcessClassifier(1.0 * RBF(1.0), warm_start=True),
# GaussianProcessClassifier(1.0 * RBF(1.0), warm_start=True),
DecisionTreeClassifier(max_depth=5),
RandomForestClassifier(
max_depth=5, n_estimators=10, max_features=1),
Expand Down

0 comments on commit a79bdf4

Please sign in to comment.