plot_confusion_matrix
Generate a confusion matrix heatmap to compare true and predicted labels, enabling deeper diagnosis of classification model errors.
Instructions
Visual confusion matrix heatmap for classification models. Shows true vs predicted labels with counts. Use after evaluate_model for deeper diagnosis. Example: plot_confusion_matrix(model_name="rf_classifier", test_df_name="data_test")
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": "plot_confusion_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | No | ||
| model_name | No | ||
| test_df_name | No | ||
| target_column | No |