Replies: 2 comments 4 replies
-
|
Very strange. I haven't seen this issue before. I'm guessing it's some difference in environment variables? Are you doing anything with virtualization? (docker, or x86 within an ARM64 CPU, for example) |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for the delayed response. Your summary above is correct parallelism="multiprocessing" in IPython = good Even though the current setup [parallelism="multiprocessing"] can run successfully, its speed is slower than expected [parallelism="multithreading"]. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Code Example
import numpy as np
from pysr import *
X = 2 * np.random.randn(100, 5)
y = 2 * np.cos(X[:, 3]) + X[:, 0] ** 2 - 2
model = PySRRegressor(
binary_operators=["+", "-", "*", "/"],
populations=10
)
model.fit(X, y) # Hangs with 100% CPU in terminal
print(model)
Background Context
Previously, my PySR code worked directly in terminal without any resource limitations
Last night, I tried using IPython in terminal, which attempted to reinstall Julia dependencies and failed
Since then, this issue has persisted
I've already tried deleting the Julia environment (~/.julia/environments/pyjuliapkg) and reinstalling dependencies, but the problem remains
PySR version: 1.5.9
What could cause this difference between VS Code Terminal and Interactive Window?
Why would previously working code now require explicit resource limits?
Are there any known issues with Julia environment corruption that could cause this behavior?
What's the recommended way to completely reset PySR/Julia environment to fix such issues?
Any insights or suggestions would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions