Skip to content

Commit

Permalink
added study.shuffle_exps() feature
Browse files Browse the repository at this point in the history
  • Loading branch information
optimass committed Jan 13, 2025
1 parent 53a395c commit d00da18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/agentlab/experiments/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ def get_results(self, suffix="", also_save=True):

return result_df, summary_df, error_report

def shuffle_exps(self):
"""Shuffle the experiments in the study."""
import random

random.shuffle(self.exp_args_list)


@dataclass
class Study(AbstractStudy):
Expand Down

0 comments on commit d00da18

Please sign in to comment.