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.
Uh oh!
There was an error while loading. Please reload this page.
-
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_unitsandy_unitsbut defineexpression_specX_unitsandy_unitsbut without definingexpression_specHowever, when I try to combine both (i.e., use a custom expression and set
X_unitsandy_units), the code fails. My main questions are:fis dimensionless, but constants likey0_A,k_A,y0_M,k_Mhave 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