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))

After Change


        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])))
        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: 5

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: allenai/allennlp
Commit Name: c7289513f9fc93b37cecc28ce1e8d4ece7f84956
Time: 2018-10-03
Author: pradeep.dasigi@gmail.com
File Name: allennlp/semparse/worlds/wikitables_variable_free_world.py
Class Name: WikiTablesVariableFreeWorld
Method Name: _map_name


Project Name: interactiveaudiolab/nussl
Commit Name: 1da518468eddc31d93470b07cd8ae8a0bba616c7
Time: 2019-04-05
Author: prem@u.northwestern.edu
File Name: nussl/deep/datasets/scaper_dataset.py
Class Name: Scaper
Method Name: load_audio_files