I don't think it's as simple as putting the length of the AST in the goal function (but it's something interesting to try).
Depending on compile speed vs running speed you might be better off interpreting your ASTs
I don't think it's as simple as putting the length of the AST in the goal function (but it's something interesting to try).
Depending on compile speed vs running speed you might be better off interpreting your ASTs
I don't know what that would do to the learning process -- but at least it would be useful for end results.
I'm generally pretty suspicious of generic algorithms; why take a random walk when you can March along the gradient towards a solution?
It might be interesting to try using GA for neural architecture, though, and gradient descent to train the network... (Though it sounds expensive.)
Because your problem has no smooth/continuous gradient
Because your problem has a giant search space
Because your problem can do with a "close enough" solution
Try gradient descending a symbolic regression and we'll talk