Skip to content

[BUG]: Freezing/Getting Stuck on Python 3.7/PySR 0.18.3 #832

Description

@amirhszd

What happened?

Hi there, I have not been able to find a similar issue to this. It is probably something silly. But I am running on Python 3.7, on larger number of iterations and bigger datasets (2000 samples with 3 features), the progress print gets stuck at "compiling Julia backend" or in the middle of the optimization. I am using the very basic functionality code in the readme file, so nothing crazy. Any ideas?

Thanks,
Amir

Version

0.18.3

Operating System

macOS

Package Manager

Conda

Interface

Script (i.e., python my_script.py)

Relevant log output

Compiling Julia backend...
[ Info: Started!
2.4%┣██                                                                                  ┫ 71/3.0k [00:02<01:07, 44it/s]Expressions evaluated per second: 7.85e+04. Head worker occupation: 22.4%                                               Press 'q' and then <enter> to stop execution early.                                                                     Hall of Fame:                                                                                                           ----------------------------------------------------------------------------------------------------------------------- Complexity  Loss       Score     Equation                                                                               1           6.077e-01  1.594e+01  y = x2                                                                                2           6.057e-01  3.288e-03  y = cube(-0.33556)                                                                    3           5.736e-01  5.450e-02  y = -0.18654 * x1                                                                     4           5.716e-01  3.527e-03  y = cube(-0.21912 * x1)                                                               5           5.017e-01  1.303e-01  y = 0.24248 * (x0 - x1)                                                               6           3.090e-01  4.849e-01  y = cube(0.33309 * (x0 - x1))                                                         8           2.241e-01  1.606e-01  y = 0.24248 * (square(x0 - x1) - x0)                                                  12          2.219e-01  2.427e-03  y = ((square(x0 - x1) + (x2 - x1)) * 0.21079) + -0.24809                              14          2.136e-01  1.898e-02  y = 0.24248 * (((square((x0 - x1) - -0.17614) - x0) - 1.3057) - -0.22216)             16          2.097e-01  9.353e-03  y = (x2 + ((0.1745 * 1.3059) * (square(x1 - x0) - (0.54558 * x1)))) + -0.34857        17          2.013e-01  4.082e-02  y = (((square(x0 - x1) + x2) * 0.21079) - square((0.096751 * -2.0963) * x1)) + -0....                                   24809                                                                                 19          1.975e-01  9.550e-03  y = (((square(x0 - x1) + x2) * 0.21079) - square(((0.096751 * x0) * x1) * 0.57378)...                                   ) + -0.24809                                                                          20          1.954e-01  1.073e-02  y = (((square(inv(-0.7479)) * square((x0 + -0.34297) - x1)) - x1) * (-0.083091 * i...                                   nv(cube(-0.82306)))) - 0.2591

Extra Info

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions