f5c13cc251a8b96028ba0b520d57e137d2b833b4,test/test_automl/test_automl.py,AutoMLTest,test_fit,#AutoMLTest#,98
Before Change
self.automl._load_models()
def test_fit(self):
output = os.path.join(self.test_dir, "..", ".tmp_test_fit")
self._setUp(output)
X_train, Y_train, X_test, Y_test = putil.get_dataset("iris")
backend_api = backend.create(output, output)
automl = autosklearn.automl.AutoML(backend_api, 20, 5)
automl.fit(
X_train, Y_train, metric=accuracy, task=MULTICLASS_CLASSIFICATION,
)
After Change
self.automl._disable_evaluator_output = True
self.automl._load_models()
def test_fit(self):
backend_api = self._create_backend("test_fit")
X_train, Y_train, X_test, Y_test = putil.get_dataset("iris")
automl = autosklearn.automl.AutoML(backend_api, 20, 5)
automl.fit(
X_train, Y_train, metric=accuracy, task=MULTICLASS_CLASSIFICATION,
)
score = automl.score(X_test, Y_test)
self.assertGreaterEqual(score, 0.8)
self.assertEqual(automl._task, MULTICLASS_CLASSIFICATION)
del automl
self._tearDown(backend_api.temporary_directory)
self._tearDown(backend_api.output_directory)
def test_fit_roar(self):
def get_roar_object_callback(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
Instances
Project Name: automl/auto-sklearn
Commit Name: f5c13cc251a8b96028ba0b520d57e137d2b833b4
Time: 2018-06-18
Author: 31531627+ahn1340@users.noreply.github.com
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_fit
Project Name: automl/auto-sklearn
Commit Name: f5c13cc251a8b96028ba0b520d57e137d2b833b4
Time: 2018-06-18
Author: 31531627+ahn1340@users.noreply.github.com
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_binary_score_and_include
Project Name: automl/auto-sklearn
Commit Name: f5c13cc251a8b96028ba0b520d57e137d2b833b4
Time: 2018-06-18
Author: 31531627+ahn1340@users.noreply.github.com
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_fit_roar
Project Name: automl/auto-sklearn
Commit Name: f5c13cc251a8b96028ba0b520d57e137d2b833b4
Time: 2018-06-18
Author: 31531627+ahn1340@users.noreply.github.com
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_fit