fastai / fastbook

The fastai book, published as Jupyter Notebooks
Other
21.51k stars 8.33k forks source link

Should the accuracy calculation in Chapter 4 be weighted? #559

Open hitsvilleusa opened 1 year ago

hitsvilleusa commented 1 year ago

The line in chapter 4 when computing the accuracy is:

accuracy_3s,accuracy_7s,(accuracy_3s+accuracy_7s)/2

Is /2 appropriate here? It would seem that the accuracy should take into account the number of images in the validation set? Granted these are pretty close in this case, but it would seem that this would make a big difference if the number of images in these two sets were quite different?