Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astroautomata/PySR
/ functions
Functions
356 in github.com/astroautomata/PySR
⨍
Functions
356
◇
Types & classes
31
↓ 1 callers
Function
create_or_update_file
Create or update a file in repo on branch. Returns the commit SHA created by the contents API.
scripts/paper_image_sync.py:254
↓ 1 callers
Function
create_sympy_symbols
( feature_names_in: ArrayLike[str], )
pysr/export_sympy.py:83
↓ 1 callers
Function
create_sympy_symbols_map
( feature_names_in: ArrayLike[str], )
pysr/export_sympy.py:77
↓ 1 callers
Function
ensure_branch
Ensure branch exists in repo, creating from base_branch if missing.
scripts/paper_image_sync.py:296
↓ 1 callers
Function
generate_table_environment
( columns: list[str] = ["equation", "complexity", "loss"] )
pysr/export_latex.py:30
↓ 1 callers
Function
get_object_from_path
Import and return the Python object at the given path.
docs/gen_api.py:33
↓ 1 callers
Method
get_pkl_filename
(self)
pysr/sr.py:1484
↓ 1 callers
Function
get_pr_info
(repo: str, pr_number: int, token: str)
scripts/paper_image_sync.py:61
↓ 1 callers
Function
init_julia
(*args, **kwargs)
pysr/deprecated.py:17
↓ 1 callers
Function
install
(*args, **kwargs)
pysr/deprecated.py:8
↓ 1 callers
Function
isinstalled
(uuid_s: str)
pysr/julia_extensions.py:51
↓ 1 callers
Function
jl_dict
(x)
pysr/julia_helpers.py:46
↓ 1 callers
Function
jl_named_tuple
(d)
pysr/julia_helpers.py:50
↓ 1 callers
Method
julia_expression_options
(self)
pysr/expression_specs.py:284
↓ 1 callers
Method
julia_expression_spec
(self)
pysr/expression_specs.py:90
↓ 1 callers
Function
list_pr_files
(repo: str, pr_number: int, token: str)
scripts/paper_image_sync.py:78
↓ 1 callers
Function
load_all_packages
Install and load all Julia extensions available to PySR.
pysr/julia_extensions.py:36
↓ 1 callers
Function
main
()
scripts/paper_image_sync.py:438
↓ 1 callers
Function
main
()
scripts/validate_papers_yml.py:38
↓ 1 callers
Function
main
Main entry point.
docs/gen_api.py:373
↓ 1 callers
Function
main
Generate index.md from _index.md template and README.md content.
docs/gen_vitepress_index.py:63
↓ 1 callers
Function
merge_trials
Merge two hyperopt trials objects :trials1: The primary trials object :trials2_slice: A slice of the trials object to be merged, obta
benchmarks/print_best_model.py:18
↓ 1 callers
Function
multi_denoise
Perform `denoise` along each column of `y` independently.
pysr/denoising.py:33
↓ 1 callers
Function
open_pr
Open a PR. If one already exists for (head->base), return its URL.
scripts/paper_image_sync.py:326
↓ 1 callers
Function
pr_has_existing_bot_comment
Return True if the paper-image bot has already commented on this PR. This is used to avoid posting a confusing warning when a user has already
scripts/paper_image_sync.py:96
↓ 1 callers
Function
process_markdown_file
Process a markdown file, replacing ::: directives with rendered docs.
docs/gen_api.py:326
↓ 1 callers
Function
process_readme_content
Extract main content from README.md for VitePress. Skips GitHub-specific elements (logo, title) and starts from first ## heading.
docs/gen_vitepress_index.py:9
↓ 1 callers
Function
process_readme_to_index
Convert README.md to index.md with VitePress syntax.
docs/gen_api.py:348
↓ 1 callers
Function
render_api_doc
Render API documentation for a Python object.
docs/gen_api.py:188
↓ 1 callers
Function
resize_compress_image
Return (processed_bytes, output_ext). Policy: - Always output PNG (lossless) and strip alpha. - Any transparency is flattened onto a whit
scripts/paper_image_sync.py:141
↓ 1 callers
Function
runtests
Run all tests in cliTest.py.
pysr/test/test_cli.py:66
↓ 1 callers
Function
str_param_groups
(param_groupings, params, cur_heading=2)
docs/gen_param_docs.py:23
↓ 1 callers
Function
sympy2jaxtext
(expr, parameters, symbols_in, extra_jax_mappings=None)
pysr/export_jax.py:58
↓ 1 callers
Function
sympy2multilatextable
Generate multiple latex tables for a list of equation sets.
pysr/export_latex.py:130
↓ 1 callers
Function
sympy2numpy
(eqn, sympy_symbols, *, selection=None)
pysr/export_numpy.py:13
↓ 1 callers
Function
try_push_cleanup_commit
If PR is from same repo, push a cleanup commit to the PR branch. Returns commit SHA if pushed, else None.
scripts/paper_image_sync.py:383
↓ 1 callers
Function
with_preamble
(table_string: str)
pysr/export_latex.py:158
↓ 1 callers
Method
write_hparams
Write hyperparameters to the logger.
pysr/logger_specs.py:20
Method
__call__
(self, X)
pysr/export_numpy.py:32
Method
__call__
(self, X: np.ndarray, *args)
pysr/expression_specs.py:404
Method
__getstate__
Handle pickle serialization for PySRRegressor. The Scikit-learn standard requires estimators to be serializable via `pickle.
pysr/sr.py:1415
Method
__init__
( self, model_selection: Literal["best", "accuracy", "score"] = "best", *, bin
pysr/sr.py:948
Method
__init__
( self, expression, symbols_in, selection=None, extra_funcs=None, **kwargs )
pysr/export_torch.py:161
Method
__init__
(self, eqn, sympy_symbols, selection=None)
pysr/export_numpy.py:24
Method
__init__
(self, settings=None, prec=3)
pysr/export_latex.py:13
Method
__init__
( self, function_symbols: list[str], combine: str, num_features: dict[str, int
pysr/expression_specs.py:183
Method
__init__
(self, max_parameters: int)
pysr/expression_specs.py:377
Method
__init__
(self, expression)
pysr/expression_specs.py:401
Method
__repr__
(self)
pysr/export_torch.py:178
Method
__repr__
(self)
pysr/export_numpy.py:29
Function
_add_package
()
pysr/julia_extensions.py:58
Function
_ensure_no_complex_data
(*args, **kwargs)
pysr/sklearn_monkeypatch.py:6
Function
_import_juliacall
()
pysr/julia_import.py:48
Function
_install
(julia_project, quiet, precompile)
pysr/_cli/main.py:47
Method
_print_Float
(self, expr)
pysr/export_latex.py:17
Function
_tests
Run parts of the PySR test suite. Choose from main, jax, torch, autodiff, cli, dev, startup, and slurm. You can give multiple tests, separate
pysr/_cli/main.py:65
Function
best
(*args, **kwargs)
pysr/deprecated.py:41
Function
best_callable
(*args, **kwargs)
pysr/deprecated.py:72
Function
best_row
(*args, **kwargs)
pysr/deprecated.py:51
Function
best_tex
(*args, **kwargs)
pysr/deprecated.py:62
Method
close
(self, logger: AnyValue)
pysr/logger_specs.py:83
Method
cos_approx
(x)
pysr/test/test_jax.py:124
Method
cos_approx
(x)
pysr/test/test_torch.py:225
Method
create_exports
Create additional columns in the equations dataframe.
pysr/expression_specs.py:56
Method
create_exports
( self, model: PySRRegressor, equations: pd.DataFrame, search_output,
pysr/expression_specs.py:308
Method
create_exports
( self, model: PySRRegressor, equations: pd.DataFrame, search_output,
pysr/expression_specs.py:389
Method
create_logger
(self)
pysr/logger_specs.py:49
Method
equation_file_
(self)
pysr/sr.py:1574
Method
equations
(self)
pysr/sr.py:1490
Method
evaluates_in_julia
(self)
pysr/expression_specs.py:67
Method
evaluates_in_julia
(self)
pysr/expression_specs.py:305
Method
evaluates_in_julia
(self)
pysr/expression_specs.py:386
Method
expression_spec_
(self)
pysr/sr.py:1522
Method
failing_operation
()
pysr/test/test_startup.py:169
Function
fn_
(*args)
pysr/export_torch.py:12
Method
forward
(self, memodict)
pysr/export_torch.py:147
Method
forward
(self, X)
pysr/export_torch.py:181
Function
get_runtests
()
pysr/test/test_cli.py:7
Method
julia_expression_spec
The expression specification
pysr/expression_specs.py:51
Method
julia_expression_spec
(self)
pysr/expression_specs.py:254
Method
julia_expression_spec
(self)
pysr/expression_specs.py:380
Method
julia_options_
The deserialized julia options.
pysr/sr.py:1499
Method
julia_state_
The deserialized state.
pysr/sr.py:1504
Function
process_directive
Process a single ::: directive.
docs/gen_api.py:264
Function
pysr
(X, y, weights=None, **kwargs)
pysr/deprecated.py:27
Function
pysr
(context)
pysr/_cli/main.py:22
Method
raw_julia_state_
(self)
pysr/sr.py:1512
Function
replace_details
(match)
docs/gen_api.py:358
Function
run_trial
Evaluate the model loss using the hyperparams in args :args: A dictionary containing all hyperparameters :returns: Dict with status and loss
benchmarks/hyperparamopt.py:36
Function
runtests
(just_tests=False)
pysr/test/test_slurm.py:281
Function
runtests
(just_tests=False)
pysr/test/test_startup.py:226
Function
runtests
Run all tests in test_jax.py.
pysr/test/test_jax.py:153
Function
runtests
Run all tests in test.py.
pysr/test/test_main.py:2352
Function
runtests
Run all tests in test_autodiff.py.
pysr/test/test_autodiff.py:58
Function
runtests
Run all tests in test_torch.py.
pysr/test/test_torch.py:253
Function
runtests
(just_tests=False)
pysr/test/test_dev.py:51
Method
setUp
(self)
pysr/test/test_slurm.py:26
Method
setUp
(self)
pysr/test/test_cli.py:14
Method
setUp
(self)
pysr/test/test_startup.py:22
Method
setUp
(self)
pysr/test/test_startup.py:164
← previous
next →
101–200 of 356, ranked by callers