10000 RF: Rearranging matmul order and using hermitian flag in ICC_rep_anova by kristoferm94 · Pull Request #3453 · nipy/nipype · GitHub
[go: up one dir, main page]

Skip to content

RF: Rearranging matmul order and using hermitian flag in ICC_rep_anova #3453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
np.dot(X.T, T) is Hermitian
  • Loading branch information
kristoferm94 committed Apr 20, 2022
commit e3d08bda4ebbca231245c58dbef94075711a545c
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
4 changes: 3 additions & 1 deletion nipype/algorithms/icc.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def ICC_rep_anova(Y):
X = hstack([x, x0])

# Sum Square Error
predicted_Y = dot(dot(dot(X, pinv(dot(X.T, X))), X.T), Y.flatten("F"))
predicted_Y = dot(
dot(dot(X, pinv(dot(X.T, X), hermitian=True)), X.T), Y.flatten("F")
)
residuals = Y.flatten("F") - predicted_Y
SSE = (residuals**2).sum()

Expand Down
0