Skip to content

Commit

Permalink
Removed debugging assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jmafoster1 committed Jan 6, 2025
1 parent 9111bda commit 279f462
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ def fitness(self, expression: gp.PrimitiveTree) -> float:

if pd.isnull(nrmse) or nrmse.real != nrmse:
return (float("inf"),)

Check warning on line 297 in causal_testing/estimation/genetic_programming_regression_fitter.py

View check run for this annotation

Codecov / codecov/patch

causal_testing/estimation/genetic_programming_regression_fitter.py#L297

Added line #L297 was not covered by tests
assert nrmse > 0, f"NRMSE {nrmse} should be greater than zero"

return (nrmse,)

Expand Down

0 comments on commit 279f462

Please sign in to comment.