Esempio n. 1
0
    def allclose(self, other):
        J_err = _err_string(self._J, other._J)
        Lambda_err = _err_string(self._Lambda.full()._S, other._Lambda.full()._S)
        Z_err = _err_string(self._Z, other._Z)
        set_err_info('gaussians', [('J', J_err), ('Lambda', Lambda_err), ('Z', Z_err)])

        return np.allclose(self._J, other._J) and \
               self._Lambda.allclose(other._Lambda) and \
               np.allclose(self._Z, other._Z)
    def allclose(self, other):
        J_err = _err_string(self._J, other._J)
        Lambda_err = _err_string(self._Lambda.full()._S, other._Lambda.full()._S)
        Z_err = _err_string(self._Z, other._Z)
        set_err_info("gaussians", [("J", J_err), ("Lambda", Lambda_err), ("Z", Z_err)])

        return (
            np.allclose(self._J, other._J) and self._Lambda.allclose(other._Lambda) and np.allclose(self._Z, other._Z)
        )
    def allclose(self, other):
        J_err = _err_string(self._J, other._J)
        Lambda_err = _err_string(self._Lambda.full()._S, other._Lambda.full()._S)
        Z_err = _err_string(self._Z, other._Z)
        set_err_info('gaussians', [('J', J_err), ('Lambda', Lambda_err), ('Z', Z_err)])

        return np.allclose(self._J, other._J) and \
               self._Lambda.allclose(other._Lambda) and \
               np.allclose(self._Z, other._Z)
Esempio n. 4
0
 def allclose(self, other):
     self, other = self.full(), other.full()
     es = _err_string(self._S, other._S)
     set_err_info('psd_matrices', [('S', es)])
     return np.allclose(self._S, other._S)
 def allclose(self, other):
     self, other = self.full(), other.full()
     es = _err_string(self._S, other._S)
     set_err_info('psd_matrices', [('S', es)])
     return np.allclose(self._S, other._S)