#138138th of 214 in ML frameworks and librariesFor data and documents, data analysis

pysr

Symbolic regression library that finds equations from data

Stars
4.2k
License
Apache-2.0
Last commit
Oct 2026
Last release
Oct 2026
Language
Python

Missed the latest GitHub check; these facts may be older.

Overview

PySR searches for interpretable symbolic expressions that fit a dataset, using an evolutionary search implemented in the Julia library SymbolicRegression.jl. It exposes a scikit-learn-style PySRRegressor in Python, with custom operators and losses written in Julia syntax. Fitted equations can be exported to SymPy, JAX or PyTorch, and runs can be distributed over a cluster such as Slurm.

Who it is for: Researchers and data scientists who want closed-form equations from data

Strengths

  • scikit-learn-style fit/predict API with a table of equations by complexity and loss
  • Exports equations to SymPy, callable functions, and differentiable JAX and PyTorch
  • Custom operators, losses, constraints and per-operator complexity are configurable
  • Multithreaded Julia search backend, with cluster support such as Slurm

Weaknesses

  • Julia dependencies install on first import, which slows initial setup
  • Suited to low-dimensional data; high dimensions need symbolic distillation of a neural net
  • Possible GLIBCXX import crash needs an LD_LIBRARY_PATH workaround
  • Warm-start state breaks if operators or search settings change between fits

What it needs

  • no GPU
  • Docker
  • Needs Julia, SymbolicRegression.jl, SymPy, pandas
  • Models: symbolic regression, scikit-learn-style estimator, JAX export, PyTorch export

Also in ML frameworks and libraries

See all 214
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks168.9k stars+1,573 (+0.9%) in 30 daysApache-2.094 out of 100
2ultralyticsPython library and CLI for training and running YOLO vision models63.3k stars+1,004 (+1.6%) in 30 daysAGPL-3.094 out of 100
3pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts37.3k stars+107 (+0.3%) in 30 daysApache-2.094 out of 100
#4pytorchPython tensor library with GPU support and tape-based autograd105.5k stars+1,036 (+1.0%) in 30 dayscustom license93 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.6k stars+521 (+1.0%) in 30 daysMIT92 out of 100