How to get highest Accuracy

Hi, all
In classification task, how can I get highest accuracy in many epochs.
Is this decided by loss ? or After get accuracy, If sometime value is highest ever, then save as highest_value ?

Thanks in advance.

Better data, better loss function, better data augmentation, better models, more epochs.

There are many variables and no one true answer. You would get better answer with a more specific example.

@mratsim
Well, the question is how can I get only one result.

Epoch :1
Acc : 70%
Epoch: 2
Acc: 68%
Epoch: 2
Acc: 71%

Use sklearn accuracy_score or implement it yourself in PyTorch:

In pseudo code: (y_true == y_pred).mean()