Skip to content

Commit

Permalink
Rollback cond gaus (aimclub#92)
Browse files Browse the repository at this point in the history
* serialization fix

* min_shape changed
  • Loading branch information
Roman223 authored Nov 30, 2023
1 parent b1637a3 commit 1315151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bamt/nodes/conditional_gaussian_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def fit_parameters(self, data: DataFrame) -> Dict[str, Dict[str, CondGaussParams
mask = (mask) & (data[col] == val)
new_data = data[mask]
key_comb = [str(x) for x in comb]
if new_data.shape[0] > 1:
if new_data.shape[0] > 0:
if self.cont_parents:
model = clone(self.regressor)
model.fit(
Expand Down

0 comments on commit 1315151

Please sign in to comment.