f754f90ed94c7db58f2d6573471b8a7d63828d87,test/test_automl/test_automl.py,AutoMLTest,test_delete_non_winning_models,#AutoMLTest#,118

Before Change



        // Assert that the files of the models used by the ensemble weren"t deleted
        model_files = backend_api.list_all_models(seed=seed)
        model_files_idx = set([int(m_file.split(".")[-2]) for m_file in model_files])
        ensemble_members_idx = set([idx[1] for idx in automl.ensemble_.identifiers_])
        self.assertTrue(ensemble_members_idx.issubset(model_files_idx))

        del automl

After Change


        for m_file in model_files:
            // Extract the model identifiers from the filename
            m_file = os.path.split(m_file)[1].replace(".model", "").split(".", 2)
            model_files_idx.add((int(m_file[0]), int(m_file[1]), float(m_file[2])))
        ensemble_members_idx = set(automl.ensemble_.identifiers_)
        self.assertTrue(ensemble_members_idx.issubset(model_files_idx))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: automl/auto-sklearn
Commit Name: f754f90ed94c7db58f2d6573471b8a7d63828d87
Time: 2020-03-18
Author: feurerm@informatik.uni-freiburg.de
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_delete_non_winning_models


Project Name: mlflow/mlflow
Commit Name: c172fcbd5943f36b1bb62721e49661c9eb1cf5e1
Time: 2019-03-16
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/file_store.py
Class Name: FileStore
Method Name: _get_metric_from_file


Project Name: facebook/FAI-PEP
Commit Name: 9f67a534bce1063693d7716df11311e7584b6786
Time: 2018-12-11
Author: feisun@fb.com
File Name: libraries/python/classification_compare.py
Class Name: OutputCompare
Method Name: getData