Custom Expression with Dimensional Consistency #869
Replies: 3 comments 4 replies
-
Unfortunately, template expression specifications are currently incompatible with dimensional constraints, apologies. There should certainly be a better error message though. |
Beta Was this translation helpful? Give feedback.
-
If there’s a way to compute dimensionless quantities for your problem, that might be better to use as input for a template expression? |
Beta Was this translation helpful? Give feedback.
-
Sorry if I detour the discussion, I know that scimed was developed to be dimensionally consistent |
Beta Was this translation helpful? Give feedback.
-
I'm running into an issue when trying to use a custom expression (via
expression_spec
) together with dimensionally consistent units (via X_units and y_units) in PySR. In my code, everything works as expected when I either:X_units
andy_units
but defineexpression_spec
X_units
andy_units
but without definingexpression_spec
However, when I try to combine both (i.e., use a custom expression and set
X_units
andy_units
), the code fails. My main questions are:f
is dimensionless, but constants likey0_A
,k_A
,y0_M
,k_M
have known physical units), is there a way to incorporate these unit definitions during the search process?Below is a simplified snippet of my code for context:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions