exercise 4 (handling complex images) happy or sad images

you would have to define the model before ,
if you have you may have not run it , also try restarting the kernel.
model = linearRegression() for example
check the import statements to , also that you have run the cells before this one