Closed abukaj closed 5 years ago
The issue persists despite cross validation:
k.cross_validate(Rs=np.logspace(-2, 1, 16))
est_csd = k.values('CSD')
kcsd_pot = k.values('POT')
make_plot(csd_x[34:66, 34:66],
csd_y[34:66, 34:66],
(true_csd - est_csd[:,:,0])[34:66, 34:66],
'True - kCSD CSD (center)')
make_plot(ele_x, ele_y, true_pots - kcsd_pot[est_to_ele, est_to_ele, 0],
'True - kCSD POT', cmap=cm.PRGn)
Matrix inversion is considered numerically harmful, but
KCSD.values()
uses it.I have cooked a ground truth CSD which demonstrates the issue (code below).
The pictures has been generated with the following code: