[{'role': 'system', 'content': "You are an expert in machine learning and your task is to classify code snippets into one of the following categories: ['helper_functions', 'load_data', 'data_exploration', 'data_preprocessing', 'evaluation', 'modelling', 'prediction', 'result_visualization', 'save_results', 'comment_only']."}, {'role': 'user', 'content': "Identify the single most appropriate category to which the provided code belongs. Provide your response as a single category label without any additional information, commentary, or personal opinions.\\nPython Code:def prec_prob(gold, pred, test):\n    '''\n    Using the training set to determine the precision by class\n    and assigning it to the test data set\n    '''\n    scores = []\n    precision = precision_score(gold, pred,  average=None,\n                                labels=['A','B','NEITHER'])\n    A_prec = precision[0]\n    B_prec = precision[1]\n    Neither_prec = precision[2]\n    for ante in test:\n        if (ante == 'A'):\n            scores.append([A_prec, B_prec*B_prior, Neither_prec*Neither_prior])\n        else:\n            if (ante =='B'):\n                scores.append([A_prec*A_prior, B_prec, Neither_prec*Neither_prior])\n            else:\n                scores.append([A_prec*A_prior,B_prec*B_prior,Neither_prec])\n    return scores"}, {'role': 'assistant', 'content': 'evaluation'}]