Pysr

Latest version: v1.5.4

Safety actively analyzes 723144 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 15

1.3.1

What's Changed
* Automated update to backend: v1.5.1 by github-actions in https://github.com/MilesCranmer/PySR/pull/790


**Full Changelog**: https://github.com/MilesCranmer/PySR/compare/v1.3.0...v1.3.1

1.3.0

What's Changed

- Expanded support for differential operators via backend 1.5.0 by MilesCranmer in https://github.com/MilesCranmer/PySR/pull/782

e.g., say we wish to integrate $\frac{1}{x^2 \sqrt{x^2 - 1}}$ for $x > 1$:

python
import numpy as np
from pysr import PySRRegressor, TemplateExpressionSpec

x = np.random.uniform(1, 10, (1000,)) Integrand sampling points
y = 1 / (x**2 * np.sqrt(x**2 - 1)) Evaluation of the integrand

expression_spec = TemplateExpressionSpec(
["f"], "((; f), (x,)) -> D(f, 1)(x)"
)

model = PySRRegressor(
binary_operators=["+", "-", "*", "/"],
unary_operators=["sqrt"],
expression_spec=expression_spec,
maxsize=20,
)
model.fit(x[:, np.newaxis], y)


which should correctly find $\frac{\sqrt{x^2 - 1}}{x}$.


**Full Changelog**: https://github.com/MilesCranmer/PySR/compare/v1.2.0...v1.3.0

1.2.0

What's Changed
* Compatibility with new scikit-learn API and test suite by MilesCranmer in https://github.com/MilesCranmer/PySR/pull/776
* Add differential operators and input stream specification by MilesCranmer in https://github.com/MilesCranmer/PySR/pull/780
* (Note: the differential operators aren't yet in a stable state, and are not yet documented. However, they do work!)
* This PR also adds various GC allocation improvements in the backend.

**Frontend Changelog**: https://github.com/MilesCranmer/PySR/compare/v1.1.0...v1.2.0

**Backend Changelog**: https://github.com/MilesCranmer/SymbolicRegression.jl/compare/v1.2.0...v1.4.0

1.1.0

What's Changed
* Automated update to backend: v1.2.0 by github-actions in https://github.com/MilesCranmer/PySR/pull/770


**Full Changelog**: https://github.com/MilesCranmer/PySR/compare/v1.0.2...v1.1.0

1.0.2

What's Changed
* logger fixes: close streams and persist during warm start by BrotherHa in https://github.com/MilesCranmer/PySR/pull/763
* Let sympy use log2(x) instead of log(x)/log(2) by nerai in https://github.com/MilesCranmer/PySR/pull/712

New Contributors
* BrotherHa made their first contribution in https://github.com/MilesCranmer/PySR/pull/763
* nerai made their first contribution in https://github.com/MilesCranmer/PySR/pull/712

**Full Changelog**: https://github.com/MilesCranmer/PySR/compare/v1.0.1...v1.0.2

1.0.1

What's Changed
* Automated update to backend: v1.1.0 by github-actions in https://github.com/MilesCranmer/PySR/pull/762
* Fall back to `eager` registry when needed by DilumAluthge in https://github.com/MilesCranmer/PySR/pull/765

New Contributors
* DilumAluthge made their first contribution in https://github.com/MilesCranmer/PySR/pull/765

**Full Changelog**: https://github.com/MilesCranmer/PySR/compare/v1.0.0...v1.0.1

Page 2 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.