Classification Report
classification_reportCompute per-class precision, recall, F1, support, accuracy, and macro/weighted averages from a trained model or true/predicted label lists, with optional ROC-AUC for models.
Instructions
Per-class precision, recall, F1 and support, plus accuracy and macro / weighted averages. Use EITHER a trained classification model (model_id) OR your own lists of true and predicted labels. Args: model_id (str, optional): ID of a trained classification model. The report is recomputed from its stored data. dataset (str): "test", "train" or "both". Only used with model_id. Default is "test". y_true (list, optional): True labels (use together with y_pred). y_pred (list, optional): Predicted labels, same length as y_true. Returns: dict: accuracy, per_class metrics, averages, a printable text table and (for a model) ROC-AUC.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "classification_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| y_pred | No | ||
| y_true | No | ||
| dataset | No | test | |
| model_id | No |