select_best_model
Rank Logistic Regression and KNN models by a chosen scoring rule (recall, precision, or accuracy), then pick the model for breast cancer classification.
Instructions
Select the best model using a rule (default: recall, then precision, then accuracy).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | One of: recall_then_precision_then_accuracy, accuracy, precision, recall. Precision/recall refer to the malignant class. | recall_then_precision_then_accuracy |
| test_size | No | Fraction of the data held out for testing. | |
| request_id | No | Your own id for this call; recorded in the audit log. | unknown |
| random_state | No | Random seed for the train/test split. | |
| knn_neighbors | No | Number of neighbors for the KNN model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |