how to obtain equations where constants are optimized for different categories in the dataset? #1179
-
|
Hi, I use PySR to derive equations for ship hydrostatics, and my dataset consists of several ship categories (tankers, container vessels...). What I've already tried:
I'm curious to read which logic would you use in this case? Eloïse |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
You can use template expressions for this! See the example here: https://ai.damtp.cam.ac.uk/pysr/v1.5.9/examples#parametric-expressions
|
Beta Was this translation helpful? Give feedback.
-
|
Awesome! I've now successfully tested it on my data :) |
Beta Was this translation helpful? Give feedback.
-
|
I have to ask one more question about model import from pkl. I have no problem importing models that don't use template expressions, but I get an error when using a template expression. I've tried both: and I get the error: The pkl file exists. |
Beta Was this translation helpful? Give feedback.

You can use template expressions for this! See the example here: https://ai.damtp.cam.ac.uk/pysr/v1.5.9/examples#parametric-expressions