Skip to content

Commit

Permalink
fix random state of groupshufflesplit
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanacquah committed Mar 9, 2024
1 parent 9bca56d commit 5b419d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actinet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def fit(
t_splits = []

if n_splits < 3:
splitter = GroupShuffleSplit(n_splits=n_splits)
splitter = GroupShuffleSplit(n_splits=n_splits, random_state=42)
split_iterator = splitter.split(X, Y, groups)
else:
splitter = StratifiedGroupKFold(n_splits)
Expand Down

0 comments on commit 5b419d5

Please sign in to comment.