Learning Curve
learning_curveGenerates and saves a score-vs-training-size curve for a trained model to reveal overfitting, underfitting, or the need for more data.
Instructions
Generate and save a learning curve (score vs training set size) for a trained model. Helps to see whether the model is overfitting, underfitting, or needs more data. Args: model_id (str): ID of the trained model. cv (int): Number of cross-validation folds. Default is 5. scoring (str, optional): sklearn scoring name. Defaults to r2 for regression and accuracy for classification. Returns: dict: Model ID, scoring used, training sizes, mean scores, and saved image filename.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_id": "<model_id>"
},
"name": "learning_curve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cv | No | ||
| scoring | No | ||
| model_id | Yes |