{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/interpretable-machine-learning-for-science","title":"Interpretable Machine Learning for Science with PySR and SymbolicRegression.jl","arxiv_id":"2305.01582","date":"2023-05-02","proceeding":null,"authors":["Miles Cranmer"],"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.","url_abs":"https://arxiv.org/abs/2305.01582v3","url_pdf":"https://arxiv.org/pdf/2305.01582v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"interpretable-machine-learning-for-science","repo_url":"https://github.com/MilesCranmer/PySR","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"interpretable-machine-learning-for-science","repo_url":"https://github.com/milescranmer/pysr_paper","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"interpretable-machine-learning-for-science","repo_url":"https://github.com/milescranmer/symbolicregression.jl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"interpretable-machine-learning-for-science","repo_url":"https://github.com/hftsoi/symbolfit","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"interpretable-machine-learning","task_name":"Interpretable Machine Learning"},{"task_slug":"symbolic-regression","task_name":"Symbolic Regression"},{"task_slug":"regression-1","task_name":"regression"}],"methods":[{"method_slug":null,"method_name":"Library"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.01582","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.01582"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hftsoi/symbolfit","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/milescranmer/symbolicregression.jl","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/milescranmer/pysr_paper","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MilesCranmer/PySR","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_honours":1,"ran_draft_wrong":1,"unverified":27},"by_repo_kind":{"official":{"samples":18,"ran":2,"repositories":3},"listed":{"samples":11,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"dbaba5d6f75f42b2","entry":"exec_then_eval","repo":"milescranmer/pysr_paper","repo_kind":"official","path":"src/scripts/benchmark.py","file_url":"https://github.com/milescranmer/pysr_paper/blob/HEAD/src/scripts/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dbaba5d6f75f42b2"}},{"code_sha256_prefix":"f6c7138e24af8065","entry":"gen_dataset_using_generator","repo":"milescranmer/pysr_paper","repo_kind":"official","path":"src/scripts/benchmark.py","file_url":"https://github.com/milescranmer/pysr_paper/blob/HEAD/src/scripts/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f6c7138e24af8065"}},{"code_sha256_prefix":"33cebf0739d3fc8e","entry":"add_gof","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/evaluate.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/evaluate.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"33cebf0739d3fc8e"}},{"code_sha256_prefix":"7339ce430d9364c3","entry":"cond","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/math_defs.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/math_defs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7339ce430d9364c3"}},{"code_sha256_prefix":"cedb288dc6f7aa5b","entry":"dataset_formatting","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/processing.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/processing.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cedb288dc6f7aa5b"}},{"code_sha256_prefix":"2e8d4f68018bb06b","entry":"denoise","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/denoising.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/denoising.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2e8d4f68018bb06b"}},{"code_sha256_prefix":"94e2bf0b5e9e59fc","entry":"func_evaluate","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/evaluate.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/evaluate.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"94e2bf0b5e9e59fc"}},{"code_sha256_prefix":"dfe1ce2145be470b","entry":"func_sampling_1d","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/evaluate.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/evaluate.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dfe1ce2145be470b"}},{"code_sha256_prefix":"86deced1b26d9eec","entry":"functions_unscale","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/processing.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/processing.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"86deced1b26d9eec"}},{"code_sha256_prefix":"35cac027aec2fc9a","entry":"generate_table_environment","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/export_latex.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/export_latex.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"35cac027aec2fc9a"}},{"code_sha256_prefix":"425b9408358a1729","entry":"go_to_level","repo":"milescranmer/symbolicregression.jl","repo_kind":"official","path":"benchmark/analyze.py","file_url":"https://github.com/milescranmer/symbolicregression.jl/blob/HEAD/benchmark/analyze.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"425b9408358a1729"}},{"code_sha256_prefix":"009111bb1da07095","entry":"histogram_scale","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/processing.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/processing.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"009111bb1da07095"}},{"code_sha256_prefix":"6ddcd76b319a6e15","entry":"isinstalled","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/julia_extensions.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/julia_extensions.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6ddcd76b319a6e15"}},{"code_sha256_prefix":"748684a68ada334b","entry":"load_package","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/julia_extensions.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/julia_extensions.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"748684a68ada334b"}},{"code_sha256_prefix":"787326048f48a5af","entry":"load_pysr_graph","repo":"milescranmer/symbolicregression.jl","repo_kind":"official","path":"benchmark/family_tree.py","file_url":"https://github.com/milescranmer/symbolicregression.jl/blob/HEAD/benchmark/family_tree.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"787326048f48a5af"}},{"code_sha256_prefix":"788c8f857dfc7e08","entry":"multi_denoise","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/denoising.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/denoising.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"788c8f857dfc7e08"}},{"code_sha256_prefix":"d09001cea2cb6d5d","entry":"piecewise","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/math_defs.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/math_defs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d09001cea2cb6d5d"}},{"code_sha256_prefix":"6f4e50a90f40bacf","entry":"pysr","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/deprecated.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/deprecated.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6f4e50a90f40bacf"}},{"code_sha256_prefix":"8835c31e0f902ddc","entry":"round_a_number","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/utils.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8835c31e0f902ddc"}},{"code_sha256_prefix":"83cf752c5fd1aa95","entry":"round_numbers_in_sympy_expr","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/utils.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"83cf752c5fd1aa95"}},{"code_sha256_prefix":"e6060650fde67a36","entry":"run_feature_selection","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/feature_selection.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/feature_selection.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e6060650fde67a36"}},{"code_sha256_prefix":"d9fc600105551ba1","entry":"simplify_graph","repo":"milescranmer/symbolicregression.jl","repo_kind":"official","path":"benchmark/family_tree.py","file_url":"https://github.com/milescranmer/symbolicregression.jl/blob/HEAD/benchmark/family_tree.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d9fc600105551ba1"}},{"code_sha256_prefix":"e4406709fbceb341","entry":"square","repo":"hftsoi/symbolfit","repo_kind":"listed","path":"symbolfit/math_defs.py","file_url":"https://github.com/hftsoi/symbolfit/blob/HEAD/symbolfit/math_defs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e4406709fbceb341"}},{"code_sha256_prefix":"2b540eef802dcbec","entry":"sympy2jax","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/export_jax.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/export_jax.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2b540eef802dcbec"}},{"code_sha256_prefix":"7dcdebb05351545b","entry":"sympy2jaxtext","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/export_jax.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/export_jax.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7dcdebb05351545b"}},{"code_sha256_prefix":"2f9e8a418b2ddf46","entry":"sympy2latex","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/export_latex.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/export_latex.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2f9e8a418b2ddf46"}},{"code_sha256_prefix":"87522bac09e9f038","entry":"sympy2latextable","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/export_latex.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/export_latex.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"87522bac09e9f038"}},{"code_sha256_prefix":"550105efb9068877","entry":"sympy2numpy","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/export_numpy.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/export_numpy.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"550105efb9068877"}},{"code_sha256_prefix":"4da53042a817d8dd","entry":"sympy2torch","repo":"MilesCranmer/PySR","repo_kind":"official","path":"pysr/export_torch.py","file_url":"https://github.com/MilesCranmer/PySR/blob/HEAD/pysr/export_torch.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4da53042a817d8dd"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}