Iâm sorry to make you confused. The batch_size = 100
in script stand for the number of input images rather than tuning times. The tuning time is n_trial = 2
in line 62.
I have run the âmobilenetv2.h5â model with tuning 2 time, The bug also appear, This bug may not be related with model.
After that, I only change the number of tuning(4, 8, 10) and get some different results below(testing on 2 images).
tuning times =4:
tuning times=8:
tuning 10 times:
np.testing.assert_allclose()
passed!!! â> the model can predict the 2 images very well.
From the above results, we can find that with the increase of the tuning times, the Mismatch elements decreases graduallyă100%â> 39.6%â>0%ă
When checking the prediction probability of each classification, I find that when the number of tuning is 2, the prediction probability values for each classification are almost similar.
With the increasing number of tuning, the prediction value for correct classification gradually increases.