additional code to find the prediction accuracy