Skip to content

Commit

Permalink
update drop_last action
Browse files Browse the repository at this point in the history
  • Loading branch information
mieskolainen committed Jul 24, 2024
1 parent c26e8ae commit 35ac199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions icenet/deep/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def torch_loop(model, train_loader, test_loader, args, param, config={'params':
if epoch == 0 or ((epoch+1) % param['evalmode']) == 0 or args['__raytune_running__']:
_, train_acc, train_auc = optimize.test(model=model, loader=train_loader, device=device, opt_param=opt_param, MI=MI, compute_loss=False)
validate_loss, validate_acc, validate_auc = optimize.test(model=model, loader=test_loader, device=device, opt_param=opt_param, MI=MI, compute_loss=True)

# Temperature calibration
try:
from icenet.deep import tempscale
Expand Down Expand Up @@ -523,8 +523,8 @@ def torch_construct(X_trn, Y_trn, X_val, Y_val, X_trn_2D, X_val_2D, trn_weights,
if 'drop_last' in opt_param:
drop_last = opt_param['drop_last']
else:
drop_last = True

drop_last = False
params_train = {'batch_size' : None,
'num_workers' : param['num_workers'],
'sampler' : torch.utils.data.BatchSampler(
Expand Down

0 comments on commit 35ac199

Please sign in to comment.