Ejemplo n.º 1
0
    def gmm_u(self, value):
        """
		:param value 		[float] or [pbd.MVN] or [pbd.GMM] or [(pbd.GMM, list)]
		"""
        # resetting solution
        self._mvn_sol_xi = None
        self._mvn_sol_u = None
        self._seq_u = None
        self._seq_xi = None

        if isinstance(value, float):
            self._gmm_u = pbd.MVN(mu=np.zeros(self.u_dim),
                                  lmbda=10**value * np.eye(self.u_dim))
        else:
            self._gmm_u = value
Ejemplo n.º 2
0
    def mvn_u(self, value):
        """
		:param value 		[float] or [pbd.MVN]
		"""
        # resetting solution
        self._mvn_sol_xi = None
        self._mvn_sol_u = None
        self._seq_u = None
        self._seq_xi = None

        if isinstance(value, pbd.MVN):
            self._mvn_u = value
        else:
            self._mvn_u = pbd.MVN(mu=np.zeros(self.mvn_u_dim),
                                  lmbda=10**value * np.eye(self.mvn_u_dim))
Ejemplo n.º 3
0
    def mvn_u(self, value):
        """
		:param value 		[float] or [pbd.MVN]
                if value is float type, the precision matrix is initialized by that value.
		"""
        # resetting solution
        self._mvn_sol_xi = None
        self._mvn_sol_u = None
        self._seq_u = None
        self._seq_xi = None

        if isinstance(value, pbd.MVN):
            self._mvn_u = value
        else:
            self._mvn_u = pbd.MVN(mu=np.zeros(self.mvn_u_dim),
                                  lmbda=10**value * np.eye(self.mvn_u_dim))