Skip to content

Implement dynamic blending#238

Open
voegtlel wants to merge 1 commit into
developfrom
feature/dynamic_blending
Open

Implement dynamic blending#238
voegtlel wants to merge 1 commit into
developfrom
feature/dynamic_blending

Conversation

@voegtlel

Copy link
Copy Markdown
Collaborator

The task encoder can now define a blend_sample_size function to determine the amount each sample contributes.

Balancing is deficit-based on historic distribution. We do not look-ahead for now, also we do not keep running averages of sizes (to simulate look-ahead).

There are two configs for this:

  • blend_sample_size_alpha: this is the coefficient (i.e. strength of deficit). For =0, it would fall back to ignoring the size. For <1, softer correction, >1: more aggressive correction.
  • blend_sample_size_epsilon: This is added to all deficits (so it depends on the unit/size of blend_sample_size). I.e. if 0, only consider undersampled sources in sampling. If >0, consider oversampled sources as well. Higher epsilon will down-weight deficits.

@voegtlel voegtlel requested a review from philipp-fischer May 29, 2026 13:54
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