Replies: 1 comment 1 reply
-
Is there a Julia version of flacco? Does anything in https://github.com/JuliaNLSolvers/Optim.jl or https://github.com/SciML/Optimization.jl do the same thing? Generally you should avoid making calls to Python inside the loss function, because the Python GIL https://wiki.python.org/moin/GlobalInterpreterLock fundamentally prevents parallelism. It's better to find a Julia equivalent as then the search can still run in parallel. You can also try to write it in Python and then ask ChatGPT to translate it to Julia. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
i am currently trying to write a custom loss function. The function is supposed to calculate some landscape features of the current term of the tree and compare it with some target features. The distance is the loss of the function. The dimensionality is 2D
I am struggeling to implement this in Julia since I am new to that language. Maybe someone can give me a helping hand.
To calculate the landscape features i need to use the pflacco package.
It works like the following example:
This is only an example since i want to calculate multiple features. They are all calculated by calling a method from the pflacco package, which always works in a similar way.
In the documentation i found the way of creating a custom loss function by using julia snippets.
I am unsure though how i can:
I would greatly appreciate your help.
Thank you,
Lukas
Beta Was this translation helpful? Give feedback.
All reactions