Exemple #1
0
    def ll_diff(self, old_cliques, old_separators, new_cliques, new_separators,
                old_JT, new_JT):
        old = gaussian_graphical_model.log_likelihood_partial(
            self.SS, self.n, self.parameters["D"], self.parameters["delta"],
            old_cliques, old_separators, self.cache, self.idmatrices)

        new = gaussian_graphical_model.log_likelihood_partial(
            self.SS, self.n, self.parameters["D"], self.parameters["delta"],
            new_cliques, new_separators, self.cache, self.idmatrices)

        return new - old
Exemple #2
0
 def log_likelihood_partial(self, cliques, separators):
     return gaussian_graphical_model.log_likelihood_partial(
         self.SS, self.n, self.parameters["D"], self.parameters["delta"],
         cliques, separators, self.cache)