Skip to content

Commit

Permalink
Flake8 fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidt0x committed Oct 28, 2024
1 parent 706d244 commit 4f359fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/brainiak/reprsimil/brsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -2166,7 +2166,8 @@ def _fit_null(self, Y, X_base, scan_onsets=None):
X0TAY = self._make_ar1_quad_form(X0TY, X0TDY, X0TFY,
est_rho1_AR1_null)
# dimension: #baseline*space
beta0s = np.squeeze(np.linalg.solve(X0TAX0, X0TAY.T[:, :, None]).T)
beta0s = np.squeeze(
np.linalg.solve(X0TAX0, X0TAY.T[:, :, None]).T)
residuals = Y - np.dot(X_base, beta0s[:np.shape(X_base)[1], :])
X_res = self.nureg_method(self.n_nureg_).fit_transform(
self.preprocess_residual(residuals))
Expand All @@ -2184,7 +2185,8 @@ def _fit_null(self, Y, X_base, scan_onsets=None):
X0TAY = self._make_ar1_quad_form(X0TY, X0TDY, X0TFY,
est_rho1_AR1_null)
# dimension: #baseline*space
est_beta0_AR1_null = np.squeeze(np.linalg.solve(X0TAX0, X0TAY.T[:,:,None]).T)
est_beta0_AR1_null = np.squeeze(
np.linalg.solve(X0TAX0, X0TAY.T[:,:,None]).T)

YTAY = self._make_ar1_quad_form(YTY_diag, YTDY_diag, YTFY_diag,
est_rho1_AR1_null)
Expand Down

0 comments on commit 4f359fb

Please sign in to comment.