Specific functional solutions #557
-
Dear all, I hope you are well. I have a question that is related to this older discussion. In there, the loss for the fully factorised solutions worked well, but now I'm looking for a more general approach to impose features in more specific functional forms. Say we are trying to find an analytical expression of the form Following the logic of the older post, I started to build more tailored loss functions to favour these expressions. However, this approach does not seem to be working. It goes as follows
In summary, I apply constraints to the children nodes. I think this approach might not be working because I'm penalising equally the constraints in Also, maybe there's simply a better way to impose these functional forms. Thanks for any help! If useful for anyone, the loss looks something like this
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
An update, in case it's useful for someone else: First, for the nominal size of the outputs that I'm working with, a loss of 10000 or 1000 was too harsh. Smaller losses were key, and it actually gave PySR a useful indication on the best way of mutating the expression trees. Second, penalising less and less as you go down the tree (be very strict with the first multiplication, a bit less strict with the factorisation of Now, the challenge will be doing so with more challenging functions :) |
Beta Was this translation helpful? Give feedback.
An update, in case it's useful for someone else:
First, for the nominal size of the outputs that I'm working with, a loss of 10000 or 1000 was too harsh. Smaller losses were key, and it actually gave PySR a useful indication on the best way of mutating the expression trees.
Second, penalising less and less as you go down the tree (be very strict with the first multiplication, a bit less strict with the factorisation of$f_1$ and the sum on the right child, etc) seems to be the correct way of proceeding! Recovering a known, relatively easy couple of functions $f_1$ and $f_2$ , has been achieved, as several algebraically equivalent expressions are given in the hall of fome.
Now, the challeng…