1385038d7f08f101a7597548196de45ca7a59679,brainiak/eventseg/event.py,EventSegment,fit,#EventSegment#Any#Any#,108
Before Change
// Double-check that data is z-scored in time
for i in range(n_train):
X[i] = stats.zscore(X[i], axis=1, ddof=1)
// Initialize variables for fitting
log_gamma = []
for i in range(n_train):
After Change
logprob = self._logprob_obs(X[i], mean_pat, iteration_var)
log_gamma[i], self.ll_[-1, i] = self._forward_backward(logprob)
if step > 1 and self.split_merge:
curr_ll = np.mean(self.ll_[-1, :])
self.ll_[-1, :], log_gamma, mean_pat = \
self._split_merge(X, log_gamma, iteration_var, curr_ll)
// If log-likelihood has started decreasing, undo last step and stop
if np.mean(self.ll_[-1, :]) < best_ll:
self.ll_ = self.ll_[:-1, :]
break
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: brainiak/brainiak
Commit Name: 1385038d7f08f101a7597548196de45ca7a59679
Time: 2020-02-06
Author: chrisb33@gmail.com
File Name: brainiak/eventseg/event.py
Class Name: EventSegment
Method Name: fit
Project Name: neurodsp-tools/neurodsp
Commit Name: 20047f4faebee3a9f21596bdd24a12df575dcb7a
Time: 2019-08-18
Author: tdonoghue@ucsd.edu
File Name: neurodsp/sim/aperiodic.py
Class Name:
Method Name: sim_powerlaw
Project Name: brainiak/brainiak
Commit Name: 90d79668032e4a49a872630d6d4acaf06a286135
Time: 2018-10-22
Author: cameron.ellis@yale.edu
File Name: brainiak/utils/fmrisim.py
Class Name:
Method Name: _generate_noise_spatial