dyson-ai / bencher

A package for benchmarking the characteristics of arbitrary functions
https://bencher.readthedocs.io/en/latest/
MIT License
2 stars 3 forks source link

Feature/with samples #400

Closed blooop closed 4 months ago

blooop commented 4 months ago

Summary by Sourcery

This pull request introduces a new feature allowing the specification of the number of samples in the 'p' function. It also updates the 'convert_vars_to_params' function to handle this new parameter and includes new example sweeps to demonstrate its usage.

sourcery-ai[bot] commented 4 months ago

Reviewer's Guide by Sourcery

This pull request introduces a new feature that allows specifying the number of samples for variables in the benchmarking tool. The changes include modifications to the function signatures and logic to handle the new 'samples' parameter, as well as updates to example scripts to demonstrate the new functionality.

File-Level Changes

Files Changes
bencher/variables/inputs.py
bencher/bencher.py
Introduced and integrated the 'samples' parameter into the benchmarking tool's core logic.
bencher/example/example_custom_sweep2.py Added example usages to demonstrate the new 'samples' parameter functionality.
codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.10%. Comparing base (2d3af3a) to head (3e40c7f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #400 +/- ## ========================================== + Coverage 90.08% 90.10% +0.01% ========================================== Files 57 57 Lines 3277 3283 +6 ========================================== + Hits 2952 2958 +6 Misses 325 325 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.