Tell us what’s happening:
Cat Dog Classifier Issue with displaying Test Images and Probabilities
Hello FCC, Although I have completed the challenge, I ran into an issue displaying the test images using the ‘plotImages’ function at Cell 10.
I tested it with the train_test_generator and It works perfectly well.
However, When I try using the same syntax in cell 4, I’m met with a Type Error: Specifically, The axis is not Iterable.
I’ve tried searching for the problem, but to no avail, and when I do get an output, it comes out all weird like this:
##Your Code so Far
I wonder if Maybe, I messed something up in the instantiation of the test_data_gen, so here’s the code for reference:
Please note the results still remain unchanged even after setting class_mode to None or leaving it blank
Here’s a link to my Collab for further analysis:
PS. I’d done some research into improving the accuracy of a model(without having to build it on another model) and I found out that:
- Increasing Data Input (in our case generating more augmented images) might help improve the accuracy of the model
- Tweaking some of the hyperparameters such as the: epochs, learning rate, batch size as well as architecture (which technically isn’t a hyperparameter) can also improve the model’s accuracy.
I, however, am still a bit confused on an empirical relationship the hyperparameters might have on accuracy, so I’m still open to learning from you guys.
Thanks in Advance, and apologies if this was too long
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0
Challenge Information:
Machine Learning with Python Projects - Cat and Dog Image Classifier