[quote=“gphilip, post:2, topic:128877”]
df_valid showing me empty dataframe even though i did this :
df_train = df_folds[df_folds[“fold”] != fold].reset_index(drop=True)
df_valid = df_folds[df_folds[“fold”] == fold].reset_index(drop=True)
inside train_on_fold function,and when i check df_folds dataframe i get





id
target
file_path
fold




0
0000799a2b2c42d
0
/home/apsisdev/data/seti/seti-breakthrough-lis…
1


1
00042890562ff68
0
/home/apsisdev/data/seti/seti-breakthrough-lis…
1


2
0005364cdcb8e5b
0
/home/apsisdev/data/seti/seti-breakthrough-lis…
4


3
0007a5a46901c56
0
/home/apsisdev/data/seti/seti-breakthrough-lis…
2


4
0009283e145448e
0
/home/apsisdev/data/seti/seti-breakthrough-lis…
3


…
…
…
…
…


59995
fff8217fe05aba3
0
/home/apsisdev/data/seti/seti-breakthrough-lis…
3


59996
fffa939e610ed70
0
/home/apsisdev/data/seti/seti-breakthrough-lis…
4


59997
fffbb1c9c3d6c31
1
/home/apsisdev/data/seti/seti-breakthrough-lis…
3


59998
fffc9a763d23647
0
/home/apsisdev/data/seti/seti-breakthrough-lis…
2


59999
ffff0a799efa529
0
/home/apsisdev/data/seti/seti-breakthrough-lis…
1



id target file_path fold
i can’t understand why df_valid is 0