Skip to content

Commit

Permalink
r1 fold print
Browse files Browse the repository at this point in the history
  • Loading branch information
josejimenezluna committed Jan 19, 2021
1 parent d0ab457 commit 43f7653
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions molgrad/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def metrics(ys, yhats, masks, task='regression', b_threshold=0.5):
kf = KFold(n_splits=N_FOLDS, shuffle=True, random_state=SEED)

for idx_split, (idx_train, idx_test) in enumerate(kf.split(inchis)):
print(f"Fold {idx_split}/{N_FOLDS}...")
inchis_train, inchis_test = inchis[idx_train], inchis[idx_test]
values_train, values_test = values[idx_train, :], values[idx_test, :]
mask_train, mask_test = mask[idx_train, :], mask[idx_test, :]
Expand Down

0 comments on commit 43f7653

Please sign in to comment.