How to construct an expression manually from python #359
Replies: 1 comment
-
One thing to keep in mind is that the So, the reason tree = cos(x1 - 3.2 * x2) - x1^3.2 works in other instances is because you would have already called options = SymbolicRegression.Options(
binary_operators=[+, *, /, -, ^],
unary_operators=[cos],
) beforehand. Whenever you create However, if you want to be more robust or want it to work without needing the For example, if I know that Node(1, x1, x2) to create the expression Likewise, if I know that Node(1, x1) to create But again, if you've initiated an (Note if Node(2, x1, x2) to create |
Beta Was this translation helpful? Give feedback.
-
When I run this line in my ipynb notebook:
The outputted error (which refers to the very last line of code so "tree = cos(x1 - 3.2 * x2) - x1^3.2") is:
Any ideas why?
How do I construct a basic tree in Julia (with the SymbolicRegression Julia package)?
Beta Was this translation helpful? Give feedback.
All reactions