e6dc6899d0aa846636c48562c79b161347c35235,autoreject/ransac.py,Ransac,fit,#Ransac#,192

Before Change


        if self.verbose is not False and self.n_jobs > 1:
            print("Iterating epochs ...")
        verbose = False if self.n_jobs > 1 else self.verbose
        corrs = parallel(my_iterator(self, epochs, idxs, verbose)
                         for idxs in np.array_split(np.arange(n_epochs),
                         n_jobs))
        self.corr_ = np.concatenate(corrs)
        if self.verbose is not False and self.n_jobs > 1:

After Change


        if self.verbose is not False and self.n_jobs > 1:
            print("Iterating epochs ...")
        verbose = False if self.n_jobs > 1 else self.verbose
        self.ch_subsets_ = [self._get_random_subsets(
                            epochs.info, self.random_state + random_state)
                            for random_state in np.arange(0, n_epochs, n_jobs)]
        epoch_idxs = np.array_split(np.arange(n_epochs), n_jobs)
        corrs = parallel(my_iterator(self, epochs, idxs, chs, verbose)
                         for idxs, chs in zip(epoch_idxs, self.ch_subsets_))
        self.corr_ = np.concatenate(corrs)
        if self.verbose is not False and self.n_jobs > 1:
            print("[Done]")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: autoreject/autoreject
Commit Name: e6dc6899d0aa846636c48562c79b161347c35235
Time: 2019-06-04
Author: mainakjas@gmail.com
File Name: autoreject/ransac.py
Class Name: Ransac
Method Name: fit


Project Name: tyarkoni/pliers
Commit Name: 0e62a365308c002945120551c8026f746f61e987
Time: 2017-05-10
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api.py
Class Name: ClarifaiAPIExtractor
Method Name: _extract


Project Name: sentinel-hub/eo-learn
Commit Name: 084d3cb097d1eacea365bf0612ce11928ad22414
Time: 2019-11-29
Author: matic.lubej@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: load_aws