add debug util module and try to debug sparsegp_mpi

This commit is contained in:
Zhenwen Dai 2014-08-29 15:21:21 +01:00
parent 313a238b15
commit a6e7d01ad2
3 changed files with 45 additions and 6 deletions

View file

@ -166,12 +166,16 @@ class VarDTC_minibatch(LatentFunctionInference):
# Compute Common Components
#======================================================================
from ...util.debug import checkFullRank
Kmm = kern.K(Z).copy()
diag.add(Kmm, self.const_jitter)
checkFullRank(Kmm)
Lm = jitchol(Kmm)
LmInvPsi2LmInvT = backsub_both_sides(Lm,psi2_full,transpose='right')
Lambda = np.eye(Kmm.shape[0])+LmInvPsi2LmInvT
checkFullRank(Lambda)
LL = jitchol(Lambda)
LL = np.dot(Lm,LL)
b,_ = dtrtrs(LL, psi1Y_full.T)