Avoid hard coding

I imagine most of you know this but since just wasted a number of hours trying to get a correct grade on my Week 3, part 3 lab I thought it might be worth mentioning again.
When I ran Image Segmentation with Unet lab all parts passed so I went ahead and submitted it. To my surprise I only got a 66% grade. After wasting a number of hours of my time and some of Paul’s I determined that I used the number 23 for the number of classes instead of the more general (and thus required) function variable, n_classes. Once I made the correction I received the 100% grade.

5 Likes

Thanks for your report.