Skip to content

Commit d00da18

Browse files
committed
added study.shuffle_exps() feature
1 parent 53a395c commit d00da18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/agentlab/experiments/study.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ def get_results(self, suffix="", also_save=True):
157157

158158
return result_df, summary_df, error_report
159159

160+
def shuffle_exps(self):
161+
"""Shuffle the experiments in the study."""
162+
import random
163+
164+
random.shuffle(self.exp_args_list)
165+
160166

161167
@dataclass
162168
class Study(AbstractStudy):

0 commit comments

Comments
 (0)