Skip to content

Commit

Permalink
Update conditional_mixture_gaussian_node.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman223 authored Oct 11, 2023
1 parent bf1b476 commit 8a862a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bamt/nodes/conditional_mixture_gaussian_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ def choose(
pvals: parent values
"""
mean, covariance, w = self.get_dist(node_info, pvals)

n_comp = len(w)


if np.isnan(w):
return np.nan


n_comp = len(w)

gmm = GMM(
n_components=n_comp,
priors=w,
Expand Down

0 comments on commit 8a862a2

Please sign in to comment.