Replies: 5 comments 1 reply
-
Maybe you could try PythonCall.jl? https://juliapy.github.io/PythonCall.jl/stable/pythoncall/ It lets you call Python functions from Julia. See https://astroautomata.com/PySR/examples/#7-julia-packages-and-types for an example of using an external Julia package in the loss function. |
Beta Was this translation helpful? Give feedback.
-
It somewhat worked thanks.
Though I had to do because of
also, how can I do loss_function intead of elemenetwise_loss? I think seval needs to have explicit types in args
|
Beta Was this translation helpful? Give feedback.
-
btw is it possible to do multivaritive prediction (multiple outpouts)? |
Beta Was this translation helpful? Give feedback.
-
So if you are calling back into Python, you can't use multithreading or multiprocessing because of Python's global interpreter lock. So you will need to run PySR with |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Feature Request
Hello. I would like to have a feature, where I can pass custom function loss implemented in python instead of in julia. I'm not able to implement it in julia as it part of bigger optimization pipeline. I believe this feature can be implemented by passing python function pointer to julia and executing it from there.
Beta Was this translation helpful? Give feedback.
All reactions