ef7718f02b743dbecfee08b9427a09e8b49a0fab,tpot/base.py,TPOTBase,_evaluate_individuals,#TPOTBase#Any#Any#Any#Any#,603

Before Change


            sk_chunk_list = sklearn_pipeline_list[i:i+self.n_jobs*2]
            if not sys.platform.startswith("win"):
                pool = Pool(processes=self.n_jobs)
                chunk_res = pool.map(_wrapped_cross_val_score, sk_chunk_list)
            else:
                chunk_res += map(_wrapped_cross_val_score, sk_chunk_list)
            for res in chunk_res:
                self._pbar.update(1)

After Change



        if not sys.platform.startswith("win"):
            pool = ProcessPool(processes=self.n_jobs)
            res_imap = pool.imap(_wrapped_cross_val_score, sklearn_pipeline_list)
            ini_pbar_n = self._pbar.n
            // hacky way for pbar update by using imap in pathos.multiprocessing.ProcessPool
            while True:
                num_job_done = len(res_imap._items)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: EpistasisLab/tpot
Commit Name: ef7718f02b743dbecfee08b9427a09e8b49a0fab
Time: 2017-02-22
Author: weixuanf@mail.med.upenn.edu
File Name: tpot/base.py
Class Name: TPOTBase
Method Name: _evaluate_individuals


Project Name: okfn-brasil/serenata-de-amor
Commit Name: b454cebbbe5abd2066ed231c34704ed4f85d4160
Time: 2016-09-22
Author: cuducos@gmail.com
File Name: jarbas/core/management/commands/receipturls.py
Class Name: Command
Method Name: handle


Project Name: pfnet/optuna
Commit Name: 021f9e0ba7456335743be1e96b837ab4479f6703
Time: 2018-02-22
Author: t.akiba.65536@gmail.com
File Name: pfnopt/study.py
Class Name: Study
Method Name: _run_parallel