08af7771d1f1149f3da5a98bcdbf7e65abd409ba,nni/retiarii/strategies/tpe_strategy.py,TPEStrategy,run,#TPEStrategy#Any#Any#,43

Before Change


                wait_models(model)
                self.tpe_sampler.receive_result(self.model_id, model.metric)
                self.model_id += 1
                _logger.info("Strategy says: %s", model.metric)
        except Exception:
            _logger.error(logging.exception("message"))

After Change


            _logger.warning("num of running models: %d", len(self.running_models))
            to_be_deleted = []
            for _id, _model in self.running_models.items():
                if is_stopped_exec(_model):
                    if _model.metric is not None:
                        self.tpe_sampler.receive_result(_id, _model.metric)
                        _logger.warning("tpe receive results: %d, %s", _id, _model.metric)
                    to_be_deleted.append(_id)
            for _id in to_be_deleted:
                del self.running_models[_id]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: Microsoft/nni
Commit Name: 08af7771d1f1149f3da5a98bcdbf7e65abd409ba
Time: 2020-12-27
Author: Quanlu.Zhang@microsoft.com
File Name: nni/retiarii/strategies/tpe_strategy.py
Class Name: TPEStrategy
Method Name: run


Project Name: home-assistant/home-assistant
Commit Name: ab8c127a4a466f2c137239c0eb06c8143adea106
Time: 2018-11-18
Author: JeffLIrion@users.noreply.github.com
File Name: homeassistant/components/media_player/firetv.py
Class Name:
Method Name: setup_platform


Project Name: soft-matter/trackpy
Commit Name: 715eb9836e8d89c8d9e615512fbb91500dad0ffd
Time: 2012-10-26
Author: daniel.b.allan@gmail.com
File Name: mr/plots.py
Class Name:
Method Name: plot_traj


Project Name: pantsbuild/pants
Commit Name: 9f6e7cbbdf57a8d25bce31d5d42ede499ef2c7db
Time: 2020-10-21
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/python/python_setup.py
Class Name: PythonSetup
Method Name: get_pyenv_paths


Project Name: home-assistant/home-assistant
Commit Name: 78cff36f968a63e67aec4bae3b7056736fc0ac29
Time: 2021-03-30
Author: joasoe@gmail.com
File Name: homeassistant/components/updater/__init__.py
Class Name:
Method Name: async_setup