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

Before Change


            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


        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: 6

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: scikit-learn/scikit-learn
Commit Name: 96a364e27fe2d4cb55328150a2c4b2d97acc8f3f
Time: 2020-07-26
Author: git@jjerphan.xyz
File Name: sklearn/calibration.py
Class Name: CalibratedClassifierCV
Method Name: fit


Project Name: EpistasisLab/tpot
Commit Name: 831f5ce7aad0b8172f965c519d0835465ecc7a12
Time: 2017-03-31
Author: weixuanf@upenn.edu
File Name: tpot/base.py
Class Name: TPOTBase
Method Name: _evaluate_individuals