You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
train_test_apart_stratify() produces different results for the same input data, even when setting random_state=0.
To reproduce this, I've adapted the example from the function's docstring to contain only strings (i.e., the values for a are now str instead of int). Run this several times to see different results.
train_test_apart_stratify()
produces different results for the same input data, even when settingrandom_state=0
.To reproduce this, I've adapted the example from the function's docstring to contain only strings (i.e., the values for
a
are now str instead of int). Run this several times to see different results.The cause seems to be the sets created in connex_split.py#L530 are then iterated over in connex_split.py#L543 but a set is an unordered collection. Replacing
ids[k]
withsorted(ids[k])
on L543 seems to fix this.The text was updated successfully, but these errors were encountered: