KNeighborsRegressor / Auto
Prediction standalone SDK operation. Source: 8.ML.Predict.cs. Read the complete C# integration test and setup.
1 recorded job(s); 1 have a success/completed status and a saved result. These are API records rather than independently verified test passes.
Recorded scenarios
| Recorded scenario | Partition | Last status | Evidence | JSON trace |
|---|---|---|---|---|
| neighbors / LoadDiabetes-TrainTestSplit-SimpleImputer-StandardScaler / KNeighborsRegressor / joblib / Auto | whole run | success | Result recorded | run-0889 |
Representative execution
Scenario: neighbors / LoadDiabetes-TrainTestSplit-SimpleImputer-StandardScaler / KNeighborsRegressor / joblib / Auto; partition: whole run; observed status: success. run-0889 contains all recorded numbered JSON events for this job.
Operation selection in the C# test
These are matching lines from the parameterized test, not a separate runnable program. See the full source for context.
preprocessing: "StandardScaler", module: "neighbors", algorithm: "KNeighborsRegressor",
("AdaBoostRegressor" or "BaggingRegressor" or "ExtraTreesRegressor" or "GradientBoostingRegressor" or "HistGradientBoostingRegressor" or "IsotonicRegression" or "KNeighborsRegressor", "Auto") => "Auto",
("AdaBoostRegressor" or "BaggingRegressor" or "ExtraTreesRegressor" or "GradientBoostingRegressor" or "HistGradientBoostingRegressor" or "IsotonicRegression" or "KNeighborsRegressor", "Predict-regression" or "Predict") => "Predict",
Request
{
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"request_id": "24d13934-c3a7-3d22-3f39-2ac78e879fca",
"input": {
"model_blob_id": "07793c3a-d4b8-5120-3c6f-9bb42565ac10",
"model_file_path": null,
"input_values": [
{
"age": 0.2,
"sex": -0.4,
"bmi": 0.6,
"bp": -0.1,
"s1": 0.3,
"s2": -0.2,
"s3": 0.1,
"s4": 0.4,
"s5": -0.3,
"s6": 0.2
}
],
"inference_type": "Auto",
"feature_columns": [
"age",
"sex",
"bmi",
"bp",
"s1",
"s2",
"s3",
"s4",
"s5",
"s6"
],
"data_type": "numeric",
"input_layout": "auto"
},
"request_timeout_seconds": 200
}
Result response
{
"status": "success",
"request_id": "24d13934-c3a7-3d22-3f39-2ac78e879fca",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"model_blob_id": "07793c3a-d4b8-5120-3c6f-9bb42565ac10",
"model_type": "sklearn.neighbors._regression.KNeighborsRegressor",
"requested_inference_type": "Auto",
"resolved_inference_type": "Predict",
"predictions": [
{
"row_index": 0,
"values": {
"prediction_0": 136.07280305813305
}
}
],
"stats": {
"row_count": 1,
"feature_count": 10,
"output_count": 1,
"feature_columns": [
"age",
"sex",
"bmi",
"bp",
"s1",
"s2",
"s3",
"s4",
"s5",
"s6"
],
"output_columns": [
"prediction_0"
],
"input_layout": "numpy",
"output_summary": {
"prediction_0": {
"min": 136.07280305813305,
"max": 136.07280305813305,
"mean": 136.07280305813305
}
}
},
"training_metrics": {},
"evaluation_metrics": {},
"learned": {},
"warnings": [],
"elapsed_seconds": 0.003468
}
Reproduce the operation
dotnet test --filter "FullyQualifiedName~ParallelModel.Sdk.UnitTests.Predict.Run"
The filter runs the class theory; use the recorded scenario values above to identify the corresponding parameter set. For partitioned operations, one theory can submit multiple jobs. The redacted payload identifiers are not usable live credentials or blob IDs.