Loss Questions #311
-
Hello, Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I think there isn't a way to write an elementwise loss function that gives you this. However, I think you could use the branch in #143, and use some measure of correlation for your loss. For example, the Pearson correlation coefficient: https://en.wikipedia.org/wiki/Pearson_correlation_coefficient. You could take the absolute value of it as your loss function. You would need to specify the full loss function, rather than just the elementwise loss. In other words, take this function: https://docs.julialang.org/en/v1/stdlib/Statistics/#Statistics.cor and essentially replace this line: |
Beta Was this translation helpful? Give feedback.
-
Alright ! Thanks a lot for the advice ! I will take a look :) |
Beta Was this translation helpful? Give feedback.
-
Updated answer is to pass a custom loss function to |
Beta Was this translation helpful? Give feedback.
Updated answer is to pass a custom loss function to
full_objective
(PySR) orloss_function
(SymbolicRegression.jl).