plot_learning_curve
Plot training and validation scores against training set size to identify overfitting and underfitting in machine learning models.
Instructions
Learning curve: training and validation scores vs training set size. Diagnoses overfitting (gap between train/val) and underfitting (both scores low). Example: plot_learning_curve(model_name="rf_model", train_df_name="data_train")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_splits | No | ||
| save_path | No | ||
| model_name | No | ||
| target_column | No | ||
| train_df_name | No |