I notice trainer.fit(model, data) shows a graph for the training and validation accuracy
May I ask where can we get the accuracy value? Can you point me to the API reference for the d2l.Trainer() function? Sorry for the basic question, very new to this software.
@nirudh
There is nothing in the d2l API for Trainer class on how to compute accuracy. @harislye
I had the same problem with the LeNet and AlexNet code. It prints a box with graphics, but it does not deliver the most important thing, i.e. the exact value of accuracy. I spent a whole day and night and still I could not figure out how to get that value.
On the other hand, in the example with Fine Tuning of ResNet-18, the accuracy and other values are printed. Nevertheless, the code is different, it uses other d2l.train_chap13 function. Then why do we need the Trainer class?