Skip to content

Commit

Permalink
Cond mixture bug (#85)
Browse files Browse the repository at this point in the history
* serialization fix

* fix

* Update conditional_mixture_gaussian_node.py
  • Loading branch information
Roman223 authored Oct 11, 2023
1 parent 1507472 commit bf1b476
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.isnan(w):
return np.nan

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

0 comments on commit bf1b476

Please sign in to comment.