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

Allow per-variable complexity #324

Merged
merged 13 commits into from
Jun 16, 2024
Merged

Allow per-variable complexity #324

merged 13 commits into from
Jun 16, 2024

Conversation

MilesCranmer
Copy link
Owner

For example, to make x1 have complexity 1, x2 complexity 2, and x3 complexity 3:

Options(
    ...,
    complexity_of_variables=[1, 2, 3],
)

Copy link
Contributor

github-actions bot commented Jun 15, 2024

Benchmark Results

master f7a404b... master/f7a404b127a11d...
search/multithreading 20.8 ± 0.36 s 22.4 ± 0.53 s 0.928
search/serial 33.9 ± 0.19 s 36.3 ± 0.29 s 0.934
utils/best_of_sample 0.731 ± 0.27 μs 0.692 ± 0.3 μs 1.06
utils/check_constraints_x10 11.7 ± 3 μs 11.4 ± 2.8 μs 1.03
utils/compute_complexity_x10/Float64 2.22 ± 0.11 μs 2.11 ± 0.12 μs 1.05
utils/compute_complexity_x10/Int64 2.16 ± 0.11 μs 2.11 ± 0.11 μs 1.02
utils/compute_complexity_x10/nothing 1.47 ± 0.09 μs 1.42 ± 0.1 μs 1.04
utils/optimize_constants_x10 31 ± 7.4 ms 0.0334 ± 0.0072 s 0.926
time_to_load 0.918 ± 0.0036 s 0.922 ± 0.01 s 0.995

Benchmark Plots

A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR.
Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).

@MilesCranmer MilesCranmer merged commit 7451580 into master Jun 16, 2024
27 checks passed
@MilesCranmer MilesCranmer deleted the complexity-per-var branch June 16, 2024 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant