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



        // 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()
        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])))
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: chartbeat-labs/textacy
Commit Name: 2d73fbbe9ec240ff700f9abeb30f12861044389e
Time: 2019-07-14
Author: burtdewilde@gmail.com
File Name: textacy/ke/sgrank.py
Class Name:
Method Name: sgrank


Project Name: mozilla/bugbug
Commit Name: 41f1aa3b1e87e7326f335bfd9841d72a250d111f
Time: 2019-03-18
Author: mcastelluccio@mozilla.com
File Name: bugbug/models/component.py
Class Name: ComponentModel
Method Name: get_labels