We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pardon me if there is some gap in my understanding of the code but should there not be something like
if stop: break
after these lines on PORPOISE/utils/core_utils.py (in the train function) for EarlyStopping to work?
train
for epoch in range(args.max_epochs): if args.task_type == 'survival': if args.mode == 'coattn': train_loop_survival_coattn(epoch, model, train_loader, optimizer, args.n_classes, writer, loss_fn, reg_fn, args.lambda_reg, args.gc) stop = validate_survival_coattn(cur, epoch, model, val_loader, args.n_classes, early_stopping, monitor_cindex, writer, loss_fn, reg_fn, args.lambda_reg, args.results_dir) else: train_loop_survival(epoch, model, train_loader, optimizer, args.n_classes, writer, loss_fn, reg_fn, args.lambda_reg, args.gc) stop = validate_survival(cur, epoch, model, val_loader, args.n_classes, early_stopping, monitor_cindex, writer, loss_fn, reg_fn, args.lambda_reg, args.results_dir)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Pardon me if there is some gap in my understanding of the code but should there not be something like
after these lines on PORPOISE/utils/core_utils.py (in the
train
function) for EarlyStopping to work?The text was updated successfully, but these errors were encountered: