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]")
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: riga/tfdeploy
Commit Name: df38756fb9220bd605acc3e8d5fd42f7f43c3a1e
Time: 2016-03-10
Author: marcelrieger@me.com
File Name: tests/test_ops.py
Class Name: OpsTestCase
Method Name: random
Project Name: rtqichen/torchdiffeq
Commit Name: 7391aec984c1e9e0899d51e6b0538483c37ec8fb
Time: 2020-07-27
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/adjoint.py
Class Name:
Method Name: odeint_adjoint