Food or non-food? Image Classification with Artificial Neural Network
git clone https://github.com/enyangxxx/foodImageClassifier.git
-
You can download the dataset Food-5K here by using e.g. Cyberduck to access via FTP: https://mmspg.epfl.ch/downloads/food-image-datasets/
-
Create a folder 'images' in project root folder:
cd foodImageClassfier && mkdir images
- Copy the sub-folders 'training', 'evaluation', 'validation' into the 'images' folder
I chose the following hyperparameters:
- Number of iterations = 3000
- Learning rate = 0.1
- Number of layers = 7
- Side length of an image = 100
- Number of units = side_length * side_length * 3, 100, 80, 60, 40, 20, 10, 1
The cost reduction as graph:
Considering the graph of cost reduction, the question I had was how the cost would be after 5000th, 10000th iteration & how it would look like with other values for the hyperparameters. These questions hopefully can be answered during/after the next Coursera course. But anyway, here are the costs after each 100th iteration:
After the training, the accuracy of training, (cross-)validation and test dataset achieved these following values: