Skip to content

Commit

Permalink
Change the order of the windows when filling up remainder of a batch (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr authored Aug 29, 2023
1 parent 79e00f0 commit 3fe5185
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trane"
version = "0.16.3"
version = "0.16.4"
edition = "2021"
description = "An automated system for learning complex skills"
license = "AGPL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions src/scheduler/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ impl CandidateFilter {
final_candidates.extend(new_selected);

// Go through the remainders and add them to the list of final candidates if there's still
// space left in the batch. Add the remainder from the current, new, target, easy, and
// space left in the batch. Add the remainder from the new, current, target, easy, and
// mastered windows, in that order. Limit the number of too easy or too hard exercises to
// avoid creating unbalanced batches.
Self::add_remainder(batch_size, &mut final_candidates, current_remainder, None);
Self::add_remainder(batch_size, &mut final_candidates, new_remainder, None);
Self::add_remainder(batch_size, &mut final_candidates, current_remainder, None);
Self::add_remainder(
batch_size,
&mut final_candidates,
Expand Down

0 comments on commit 3fe5185

Please sign in to comment.