Skip to content

Batched strategies - #53

Open
vreshniak wants to merge 37 commits into
developfrom
batched_strategies
Open

Batched strategies#53
vreshniak wants to merge 37 commits into
developfrom
batched_strategies

Conversation

@vreshniak

@vreshniak vreshniak commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces support of batch strategies.

Key changes include:

Strategy Handling and API Enhancements

  • Supporting new batch strategies ('liar', 'believer'). The strategy argument types were also expanded to allow lists for more flexible parameterization.
  • Updated ServersideInputMultipleOtherStrategy and related data classes to accept and process the new strategy types and arguments, including batch strategies.

Core Logic and Sampling

  • Extended core.py to support batch sampling. Now, get_next_points can handle the new strategies, delegating to the appropriate selection logic based on the strategy type.
  • Added new utility functions in strategies.py for batch_sampling supporting both liar and believer batch strategies.

Fixes and Minor Improvements

  • Fixed initialize_workflow to only train a model if both dataset_x and non-empty dataset_y are provided, preventing unnecessary or invalid model training.
  • Improved numerical stability in normalization by enforcing a minimum standard deviation (1e-12) in _transform_Y_params.

These changes collectively improve the flexibility, performance, and correctness of the DIAL service's strategy selection and data handling logic.

@vreshniak
vreshniak marked this pull request as draft August 6, 2026 14:42
@stvdwtt
stvdwtt requested a review from Lance-Drane August 20, 2026 14:31
@vreshniak
vreshniak marked this pull request as ready for review September 9, 2026 12:21
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