def _diff(self, n, *args, **kwargs): a, b = self._format_z(n) z = eKLdivVarDiff(self.mx, self.my, (self.my * a) + b, a, b) tmp = [] for i in range(self.d): for j in range(self.d): if i == j: pass else: tmp.append(z[(self.d * i) + j]) return np.array(tmp)
def _diff(self, n, *args, **kwargs): a, b = self._format_z(n) return eKLdivVarDiff(self.mx, self.my, (self.my * a) + b, a, b)