question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Support external julia libraries for custom operators

See original GitHub issue

Is your feature request related to a problem? Please describe. I’d like to use a bessel function as a custom binary operator with PySR. It seems that I need to use an external library like SpecialFunctions.jl. However, I can not seem to figure out an easy way to use a library function with binary_operators argument. Everything I’ve tried so far ended up in JULIA: AssertionError: Your configuration is invalid - one of your operators (besselj) is not well-defined over the real line., although I assume this means a compile rather then mathematical issue underneath.

Describe the solution you’d like A custom parameter with library names to additionally load passed to PySRRegressor could probably be doable?

Additional context I’m not a Julia user, so I might be missing something trivial.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MilesCranmercommented, Jul 8, 2022

Awesome; will add it.

Happy to hear you are enjoying the package! No need for the tip, but thanks for the offer – be sure to spread the word about PySR though 😃 (Although if we meet in person I will gladly take you up on a beer!)

0reactions
EvilMavcommented, Jul 8, 2022

Wow, thank you for the fast response and all the work! This should do the trick =)

As a side note, I think I should just make all the SpecialFunctions.jl functions available by default in PySR, since it has a lot of useful functions. What do you think?

I agree =)

PS I’d be happy to buy you a beer for this amazing project - feel free to drop me a link if you wish.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modules · The Julia Language
Modules in Julia help organize code into coherent units. They are delimited syntactically inside module NameOfModule ... end , and have the following...
Read more >
Apache Beam Programming Guide
Apache Beam is an open source, unified model and set of language-specific SDKs for defining and executing data processing workflows, and also data...
Read more >
Control Flow · The Julia Language
julia > function test(x, y) if x < y println("x is less than y") elseif x > y ... These are normal functions,...
Read more >
Julia Custom Operators · ADCME
Currently, embedding Julia suffers from multithreading issues: calling Julia from a non-Julia thread is not supported in ADCME. When TensorFlow kernel codes are ......
Read more >
arXiv:2007.14822v2 [cs.MS] 20 Dec 2021
Julia features a built-in package manager that makes installing libraries ... The ITensor product operator “*” can also be used for outer.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found