We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dataset.experiments
1 parent 8fadc34 commit ee973b3Copy full SHA for ee973b3
coderdata/dataset/dataset.py
@@ -936,13 +936,16 @@ def train_test_validate(
936
sss_1.split(X=df_full, y=df_full['split_class'])
937
)
938
df_train = df_full.iloc[idx_train]
939
+ df_train = df_train.drop(labels=['split_class'], axis=1)
940
df_other = df_full.iloc[idx_other]
941
# Splitting 'other' further into test and validate
942
idx_test, idx_val = next(
943
sss_2.split(X=df_other, y=df_other['split_class'])
944
945
df_test = df_other.iloc[idx_test]
946
+ df_test = df_test.drop(labels=['split_class'], axis=1)
947
df_val = df_other.iloc[idx_val]
948
+ df_val = df_val.drop(labels=['split_class'], axis=1)
949
950
# using StratifiedGroupKSplit for the stratified drug-/sample-
951
# blind splits.
0 commit comments