predict_knn
Classify breast cancer features as malignant or benign using a saved K-Nearest Neighbors model; submit all 30 features to receive a KNN prediction.
Instructions
Predict malignant (0) or benign (1) using the saved KNN model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | Feature dictionary with all 30 breast cancer features as numbers, keyed by their exact names (e.g. 'mean radius', 'worst area'). Use get_sample_input to get a valid example. | |
| request_id | No | Your own id for this call; recorded in the audit log. | unknown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |