Skip to content

Commit

Permalink
Prepping for release submitted version
Browse files Browse the repository at this point in the history
  • Loading branch information
silkemaes committed Mar 29, 2024
1 parent c96427b commit 83f7ceb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 39 deletions.
Binary file modified figs/visualisation_integrated_training_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions src/mace/CSE_0D/intregr_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ def train(model, lr, data_loader, test_loader,nb_evol, path, end_epochs, DEVICE,


## save model every epoch temporarily
torch.save(model.state_dict(),path+'/nn/nn-1'+'.pt')
np.save(path+'/nb_epoch.npy',np.array([epoch+1]))
## losses
trainpath = path+'/train'
testpath = path+'/test'
trainloss.save(trainpath)
testloss.save(testpath)
if path != None:
torch.save(model.state_dict(),path+'/nn/nn-1'+'.pt')
np.save(path+'/nb_epoch.npy',np.array([epoch+1]))
## losses
trainpath = path+'/train'
testpath = path+'/test'
trainloss.save(trainpath)
testloss.save(testpath)
## plot
# plotting.plot_loss(trainloss, testloss, log = log, show = show)
# plt.savefig(path+'/loss.png')
Expand Down
60 changes: 28 additions & 32 deletions train2.0_dev.ipynb

Large diffs are not rendered by default.

0 comments on commit 83f7ceb

Please sign in to comment.