Skip to content

Commit

Permalink
TEST run full test suite again
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed Jan 10, 2017
1 parent e3d94ad commit 5ff12f5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions test/test_automl/test_automl.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def test_fit(self):
backend_api = backend.create(output, output)
automl = autosklearn.automl.AutoML(backend_api, 60, 10)
automl.fit(X_train, Y_train)
print(automl.show_models(), flush=True)
print(automl.cv_results_, flush=True)
#print(automl.show_models(), flush=True)
#print(automl.cv_results_, flush=True)
score = automl.score(X_test, Y_test)
self.assertGreaterEqual(score, 0.8)
self.assertEqual(automl._task, MULTICLASS_CLASSIFICATION)
Expand Down Expand Up @@ -127,8 +127,8 @@ def test_binary_score(self):
backend_api = backend.create(output, output)
automl = autosklearn.automl.AutoML(backend_api, 60, 10)
automl.fit(X_train, Y_train, task=BINARY_CLASSIFICATION)
print(automl.show_models(), flush=True)
print(automl.cv_results_, flush=True)
#print(automl.show_models(), flush=True)
#print(automl.cv_results_, flush=True)
self.assertEqual(automl._task, BINARY_CLASSIFICATION)

score = automl.score(X_test, Y_test)
Expand Down
11 changes: 5 additions & 6 deletions test/test_automl/test_estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from autosklearn.estimators import AutoMLClassifier
from autosklearn.util.backend import Backend, BackendContext
from autosklearn.constants import *
30
sys.path.append(os.path.dirname(__file__))
from base import Base

Expand All @@ -44,8 +43,8 @@ def test_fit(self):
tmp_folder=output,
output_folder=output)
automl.fit(X_train, Y_train)
print(automl.show_models(), flush=True)
print(automl.cv_results_, flush=True)
#print(automl.show_models(), flush=True)
#print(automl.cv_results_, flush=True)
score = automl.score(X_test, Y_test)

self.assertGreaterEqual(score, 0.8)
Expand Down Expand Up @@ -168,7 +167,7 @@ def test_fit_pSMAC(self):
dataset_name='iris',
ensemble_size=20,
ensemble_nbest=50)
print(automl.show_models(), flush=True)
#print(automl.show_models(), flush=True)

predictions = automl.predict(X_test)
score = sklearn.metrics.accuracy_score(Y_test, predictions)
Expand Down Expand Up @@ -302,8 +301,8 @@ def test_can_pickle_classifier(self):
tmp_folder=output,
output_folder=output)
automl.fit(X_train, Y_train)
print(automl.show_models(), flush=True)
print(automl.cv_results_, flush=True)
#print(automl.show_models(), flush=True)
#print(automl.cv_results_, flush=True)

initial_predictions = automl.predict(X_test)
initial_accuracy = sklearn.metrics.accuracy_score(Y_test,
Expand Down
2 changes: 1 addition & 1 deletion testcommand.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
nosetests --processes=16 --process-timeout=240 -v $1
nosetests --processes=14 --process-timeout=360 -v $1

0 comments on commit 5ff12f5

Please sign in to comment.