Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: fixsize #484

Open
edfink234 opened this issue Dec 14, 2023 · 2 comments
Open

[Feature]: fixsize #484

edfink234 opened this issue Dec 14, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@edfink234
Copy link

Feature Request

Is the user able to fix the size of the generated expressions, or only the max size? If so, can fixsize be added as an optional feature?

@edfink234 edfink234 added the enhancement New feature or request label Dec 14, 2023
@MilesCranmer
Copy link
Owner

Hey @edfink234,

Only the max size can be specified, as expressions of a particular size need to be iteratively "built up" from smaller expressions.

Cheers,
Miles

@edfink234
Copy link
Author

edfink234 commented Dec 15, 2023

Thank you for the reply. Is there a paper or something where it is documented how the expressions are built in PySR? I was looking through the Julia code yesterday and saw a function that seems to generate a random expression that has a parameter for the length of the expression, here. Could this function in principle be used to generate fixed size expressions, or are they not valid (no rules for appending random ops)?

Sorry if the question is unwelcome 😅.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants