You've developed a video monitoring system for ovens that alerts you when a batch of brownies is cooked to perfection. Through a delicious validation procedure, you've acquired the following predictions and truths.
Calculate the precision and recall of your model using a prediction threshold of 0.5. That is, assume your model predicts True when yhat >= 0.5.