Save and further calculate the test accuracy result

Dear all,
After running the model, how could i save the result and then calculate the best accuracy on certain epoch and average accuracy in python? is there some way to load the result into excel as well?

Depending how the results should be stored you could:

  • store the print output in a text file using plain open() calls and append the strings,
  • store the tensors via
  • transform the tensors to numpy arrays via tensor.numpy() and either store it using a numpy method or create a pd.DataFrame using pandas, which would also allow you to create Excel sheets and other formats.