d3c8ad31daea26a757b4c945c6b6e4df98071111,pyinterpret/core/global_interpretation/partial_dependence.py,PartialDependence,partial_dependence,#PartialDependence#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,85

Before Change


        pdb.set_trace()
        pdps = []
        import functools
        number_of_process = Pool(n_jobs)
        for pd_row in number_of_process.map(functools.partial(compute_pd, model_fn=predict_fn,
                                              grid_expanded=grid_expanded, number_of_classes=n_classes, feature_ids=feature_ids,
                                              input_data=data_sample), [i for i in range(grid_expanded.shape[0])]):
            pdps.append(pd_row)

After Change


        n_classes = self._predict_fn.n_classes
        pd_list = []
        import functools
        executor_instance = Pool(n_jobs) if n_jobs > 0 else Pool()
        for pd_row in executor_instance.map(functools.partial(compute_pd, model_fn=predict_fn,
                                              grid_expanded=grid_expanded, number_of_classes=n_classes, feature_ids=feature_ids,
                                              input_data=data_sample), [i for i in range(grid_expanded.shape[0])]):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: datascienceinc/Skater
Commit Name: d3c8ad31daea26a757b4c945c6b6e4df98071111
Time: 2017-03-27
Author: pramitchoudhary@ip-172-30-0-7.us-west-2.compute.internal
File Name: pyinterpret/core/global_interpretation/partial_dependence.py
Class Name: PartialDependence
Method Name: partial_dependence


Project Name: scipy/scipy
Commit Name: 463f8a427b0ec04805be5665a533590fef1c1385
Time: 2020-12-16
Author: peterbell10@live.co.uk
File Name: scipy/_lib/tests/test__util.py
Class Name:
Method Name: test_mapwrapper_parallel


Project Name: anhaidgroup/deepmatcher
Commit Name: 54d494383cf25f022165d26ddea8f4082a391cf3
Time: 2018-04-15
Author: hanli@galerkin.cs.wisc.edu
File Name: deepmatcher/models/core.py
Class Name: WordAggregator
Method Name: create


Project Name: kundajelab/deeplift
Commit Name: ddfbd6e513f40d61b6918c1e06f5e87b2773d73b
Time: 2017-03-13
Author: avanti.shrikumar@gmail.com
File Name: deeplift/backend/theano_backend.py
Class Name:
Method Name: pool2d_grad


Project Name: quiltdata/quilt
Commit Name: 5a2d15a6c849e041009ff3e91d52ce2be2a541df
Time: 2019-10-09
Author: armandmcqueen@users.noreply.github.com
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: _delete_temporary_files


Project Name: anhaidgroup/deepmatcher
Commit Name: d1c403df344c0efbac5030f665a2da2f62032c32
Time: 2018-04-09
Author: sidharthmsk@gmail.com
File Name: deepmatcher/models/core.py
Class Name: WordAggregator
Method Name: create