d7655e440766a593e8d29997add6d739ec19a6f1,GPy/kern/_src/psi_comp/linear_psi_comp.py,,psicomputations,#,11
Before Change
psi0 = (variance*(np.square(mu)+S)).sum(axis=1)
psi1 = np.dot(mu,(variance*Z).T)
if not return_psi2_n:
psi2 = np.dot(S.sum(axis=0)*np.square(variance)*Z,Z.T)+ tdot(psi1.T)
else:
raise NotImplementedError
After Change
Zv = variance * Z
psi1 = np.dot(mu,Zv.T)
if return_psi2_n:
psi2 = psi1[:,:,None] * psi1[:,None,:] + np.dot(S[:,None,:] * Zv[None,:,:], Zv.T)
else:
psi2 = np.dot(S.sum(axis=0) * Zv, Zv.T) + tdot(psi1.T)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: SheffieldML/GPy
Commit Name: d7655e440766a593e8d29997add6d739ec19a6f1
Time: 2015-09-04
Author: james.hensman@gmail.com
File Name: GPy/kern/_src/psi_comp/linear_psi_comp.py
Class Name:
Method Name: psicomputations
Project Name: SheffieldML/GPy
Commit Name: e906da0309620bad16c4e36a040e407c0c131c2d
Time: 2015-09-06
Author: z.dai@sheffield.ac.uk
File Name: GPy/kern/_src/mlp.py
Class Name: MLP
Method Name: update_gradients_diag
Project Name: XifengGuo/CapsNet-Keras
Commit Name: 688e64fd31e85371d51f44053bac2acde2328f1e
Time: 2017-10-30
Author: guoxifeng1990@163.com
File Name: capsulelayers.py
Class Name: Mask
Method Name: call