Understanding dimensional analysis #1079
Unanswered
arasugurlu
asked this question in
Q&A
Replies: 3 comments 5 replies
-
|
What is x4 and x5? Your X_units only has four units in it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Btw, function loss_fnc(predictions, targets)
total_loss = 0.0
for (p, t) in zip(predictions, targets)
# simple relative error
total_loss += abs(p - t) / (abs(t) + 1e-6)
end
return total_loss
endis mixing up the definitions. An function loss_fnc(prediction, target)
T = typeof(prediction)
return abs(prediction - target) / (abs(target) + T(1e-6))
end |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Note that |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, this is my code, i was trying to search for expressions such as exp(x4/x0) or exp(x5/x0). I was unable to, thanks to Miles Cranmer, I changed the dimensional_constants_only = False, than i realized i can search such expressions above. However, this time, even if I apply for a high magnitude of dimensional penalty variable, (dimensional_constraint_penalty = 10000), PySR never creates analytical forms which are dimensionally consistent. I want my analytical equations to be dimensionally consistent, so I need help about this subject.
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions