Trying to train the dragon, this is my best shot:
#initialize?
if tools.getData('first') is None:
tools.storeData('first', 0)
if tools.getData('invCov') is None:
tools.storeData('invCov', 0)
if tools.getData('trans') is None:
tools.storeData('trans', 0)
#sum over i
tools.storeData('first', tools.getData('first') + (prediction - groundTruth))
tools.storeData('invCov', **???** ) #how calculate inv.Covariance Matrix??
tools.storeData('trans', tools.getData('trans') + transpose(prediction - groundTruth))
#how calculate transpose?
#wrap up
tools.storeData('result', (tools.getData('first')*tools.getData('invCov')*(tools.getData('trans')**1/2)
tools.getData('result')
Still how to calculate the inverse Cov matrix and to transpose are open enigmas.
@rhyolight what’s the name of this programming language?