Because we had strong results with HSV + Sobel, we also used this feature combination for another round of optimization with a different picture size (namely 75x75). The best accuracy we achieved was **0.469**, thus no improvement compared to 50x50 images.
**Different image sizes:**
==> Best results for 50x50 images with HSV + Sobel filters & HSV only
- 1.) Because we had strong results with HSV + Sobel, we also used this feature combination for another round of optimization with a different picture size (namely 75x75).
==> Therefore, we will use this feature combination for another round of optimization with a different picture size (namely 75x75)
-<details><summary> The best accuracy we achieved was <b>0.469</b>, thus no improvement compared to 50x50 images. </summary>
| Resized | Features | Accuracy (Dev) | Best Parameters | Comments |
| Resized | Features | Accuracy (Dev) | Best Parameters | Comments |
- 2.) As another experiment, we tested whether we can improve the results with no filters using different images sizes.
-<details><summary> The best accuracy we achieved was <b>0.417</b> with 75x75 images, though there are only minimal differences in performance between the different sizes. </summary>
- Classifiers both make the same mistakes, e.g. confusing raspberries, redcurrants and strawberries :strawberry: (see bottom right corner of confusion matrix)
- Classifiers both make the same mistakes, e.g. confusing raspberries, redcurrants and strawberries :strawberry: (see bottom right corner of confusion matrix)
- GridSearch:
- the importance of the parameters can be seen in the following figures:
- using the grid like we did, many combinations of parameters are tested and the best combination is chosen
- if we also want to find out how the parameters influence the accuracy, we can visualize the results of the grid search as below; the code we used for this is slightly adapted from a [stackoverflow response](https://stackoverflow.com/questions/37161563/how-to-graph-grid-scores-from-gridsearchcv)
- :mag: the figure shows the accuracy when all parameters are fixed to their best value except for the one for which the accuracy is plotted (both for train and dev set)
Confusion Matrix - No filters - best parameters | Confusion Matrix - HSV features - best parameters