Getting runtime error while calculating precision

Hello,
I was working on humpback whale identification kaggle challenge.When I am using precision as my metrics I am getting following error.I searched the forum for answer but didn’t help solve the problem.