mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-05 14:55:15 +02:00
Merge pull request #796 from markm541374/prevent-large-intermediate-matrix
fix: rearrange expression to avoid an n^2 array
This commit is contained in:
commit
4c5c7fc21c
1 changed files with 1 additions and 2 deletions
|
|
@ -142,8 +142,7 @@ class VarDTC(LatentFunctionInference):
|
|||
Cpsi1Vf, _ = dtrtrs(Lm, tmp, lower=1, trans=1)
|
||||
|
||||
# data fit and derivative of L w.r.t. Kmm
|
||||
dL_dm = -np.dot((_LBi_Lmi_psi1.T.dot(_LBi_Lmi_psi1))
|
||||
- np.eye(Y.shape[0]), VVT_factor)
|
||||
dL_dm = -_LBi_Lmi_psi1.T.dot(_LBi_Lmi_psi1.dot(VVT_factor)) + VVT_factor
|
||||
|
||||
delit = tdot(_LBi_Lmi_psi1Vf)
|
||||
data_fit = np.trace(delit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue