How to guard against dividing by zero when doing symbolic regression? ECJ
- by Charlie
I'm writing a genetic program to perform symbolic regression on a formula. I'm using ECJ. See tutorial 4 for an example of what this is and the base that I started off of.
The problem comes when implementing division as a function to your genetic program. How do you guard against dividing by zero?