HackerPapers

arXiv:2305.01582astro-ph.IM

Interpretable Machine Learning for Science with PySR and SymbolicRegression.jl

Miles Cranmer

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

PySR is an open-source library for practical symbolic regression, a type of machine learning which aims to discover human-interpretable symbolic models. PySR was developed to democratize and popularize symbolic regression for the sciences, and is built on a high-performance distributed back-end, a flexible search algorithm, and interfaces with several deep learning packages. PySR's internal search algorithm is a multi-population evolutionary algorithm, which consists of a unique evolve-simplify-optimize loop, designed for optimization of unknown scalar constants in newly-discovered empirical expressions. PySR's backend is the extremely optimized Julia library SymbolicRegression.jl, which can be used directly from Julia. It is capable of fusing user-defined operators into SIMD kernels at runtime, performing automatic differentiation, and distributing populations of expressions to thousands of cores across a cluster. In describing this software, we also introduce a new benchmark, "EmpiricalBench," to quantify the applicability of symbolic regression algorithms in science. This benchmark measures recovery of historical empirical equations from original and synthetic datasets.

arXiv comments
24 pages, 5 figures, 3 tables. Feedback welcome. Paper source found at https://github.com/MilesCranmer/pysr_paper ; PySR at https://github.com/MilesCranmer/PySR ; SymbolicRegression.jl at https://github.com/MilesCranmer/SymbolicRegression.jl
Journal reference
DOI
Subjects
astro-ph.IMInstrumentation and Methods for Astrophysics cs.LGMachine Learning cs.NENeural and Evolutionary Computing cs.SCSymbolic Computation physics.data-anData Analysis, Statistics and Probability

On Hacker News

Linked by 1 identifiable commenter in 1 comment across 1 thread, from May 2025 to May 2025. Found in 1 HN submission from May 2023 to May 2023. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments1 thread

    • Happy to answer them! 1. Because we only have blackbox access to the LLM and the evaluation function might not be differentiable. 2. We're trying to search over the space of all programs in a programming language. To cover enough of this huge search space, we need to instantiate…

      asegView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.