INNER CODE UNIT · Python

epoch_train_acc

graphdeeplearning/benchmarking-gnns · main_CSL_graph_classification.py:205

                    epoch_train_acc = 100.* epoch_train_acc
                    epoch_test_acc = 100.* epoch_test_acc
                    
                    t.set_postfix(time=time.time()-start, lr=optimizer.param_groups[0]['lr'],
                                  train_loss=epoch_train_loss, val_loss=epoch_val_loss,
                                  train_acc=epoch_train_acc, val_acc=epoch_val_acc,
                                  test_acc=epoch_test_acc)  

                    per_epoch_time.append(time.time()-start)

                    # Saving checkpoint
                    ckpt_dir = os.path.join(root_ckpt_dir, "RUN_" + str(split_number))
                    if not os.path.exists(ckpt_dir):
                        os.makedirs(ckpt_dir)
                    torch.save(model.state_dict(), '{}.pkl'.format(ckpt_dir + "/epoch_" + str(epoch)))

                    files = glob.glob(ckpt_dir + '/*.pkl')
                    for file in files:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…