Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman223 committed Oct 11, 2023
1 parent 4381c55 commit bfcabda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bamt/nodes/conditional_mixture_gaussian_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ def choose(

n_comp = len(w)

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

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

0 comments on commit bfcabda

Please sign in to comment.