Skip to main content

RadiusNeighborsClassifier

Nearest Neighbors standalone SDK operation. Source: 6.8.ML.Neighbors.cs. Read the complete C# integration test and setup.

14 recorded job(s); 14 have a success/completed status and a saved result. These are API records rather than independently verified test passes.

Recorded scenarios​

Recorded scenarioPartitionLast statusEvidenceJSON trace
LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0638
LoadBreastCancer-TrainTestSplit-SimpleImputer-KBinsDiscretizer / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0646
LoadBreastCancer-TrainTestSplit-SimpleImputer-QuantileTransformer / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0654
LoadBreastCancer-TrainTestSplit-SimpleImputer-StandardScaler / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0662
LoadBreastCancer-TrainTestSplit-SimpleImputer-normalize / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0670
LoadWine-TrainTestSplit-SimpleImputer-FunctionTransformer / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0702
LoadWine-TrainTestSplit-SimpleImputer-KBinsDiscretizer / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0710
LoadWine-TrainTestSplit-SimpleImputer-QuantileTransformer / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0718
LoadWine-TrainTestSplit-SimpleImputer-StandardScaler / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0726
LoadWine-TrainTestSplit-SimpleImputer-normalize / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0734
MakeClassification-TrainTestSplit-SimpleImputer-KBinsDiscretizer / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0742
MakeClassification-TrainTestSplit-SimpleImputer-QuantileTransformer / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0750
MakeClassification-TrainTestSplit-SimpleImputer-StandardScaler / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0758
MakeClassification-TrainTestSplit-SimpleImputer-normalize / RadiusNeighborsClassifierwhole runcompletedResult recordedrun-0766

Representative execution​

Scenario: LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer / RadiusNeighborsClassifier; partition: whole run; observed status: completed. run-0638 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.

"RadiusNeighborsClassifier", "RadiusNeighborsRegressor", "RadiusNeighborsTransformer"
or "NearestCentroid" or "NeighborhoodComponentsAnalysis" or "RadiusNeighborsClassifier"
or "RadiusNeighborsClassifier" or "RadiusNeighborsRegressor";
"RadiusNeighborsClassifier" => await SendTypedAsync(new RadiusNeighborsClassifierJobSendRequestModel
ClassifierType = "RadiusNeighborsClassifier",

Request​

{
"input": {
"train_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"test_blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"classifier_type": "RadiusNeighborsClassifier",
"classifier_params": {
"radius": 100,
"outlier_label": "most_frequent"
},
"feature_columns": [
"mean radius",
"mean texture",
"mean perimeter",
"mean area",
"mean smoothness",
"mean compactness",
"mean concavity",
"mean concave points",
"mean symmetry",
"mean fractal dimension",
"radius error",
"texture error",
"perimeter error",
"area error",
"smoothness error",
"compactness error",
"concavity error",
"concave points error",
"symmetry error",
"fractal dimension error",
"worst radius",
"worst texture",
"worst perimeter",
"worst area",
"worst smoothness",
"worst compactness",
"worst concavity",
"worst concave points",
"worst symmetry",
"worst fractal dimension"
],
"file_format": "csv",
"target_column": "target",
"generate_graphs": true
},
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-RadiusNeighborsClassifier.zip",
"description": "Neighbors integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"neighbors",
"LoadBreastCancer",
"FunctionTransformer",
"RadiusNeighborsClassifier"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-11-30T20:57:09.0054456+00:00",
"end_time": "2026-11-30T20:57:09.0642018+00:00",
"elapsed_milliseconds": 58.75,
"status": "published",
"job_id": "34d52897-c0ee-604f-2329-ce6ff003cbe0",
"topic": "pm.topic.ml.neighbors",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "34d52897-c0ee-604f-2329-ce6ff003cbe0",
"json": {
"job_id": "34d52897-c0ee-604f-2329-ce6ff003cbe0",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"train_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"train_encryption_key": "[REDACTED]",
"test_blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"test_encryption_key": "[REDACTED]",
"classifier_type": "RadiusNeighborsClassifier",
"classifier_params": {
"radius": 100,
"outlier_label": "most_frequent"
},
"feature_columns": [
"mean radius",
"mean texture",
"mean perimeter",
"mean area",
"mean smoothness",
"mean compactness",
"mean concavity",
"mean concave points",
"mean symmetry",
"mean fractal dimension",
"radius error",
"texture error",
"perimeter error",
"area error",
"smoothness error",
"compactness error",
"concavity error",
"concave points error",
"symmetry error",
"fractal dimension error",
"worst radius",
"worst texture",
"worst perimeter",
"worst area",
"worst smoothness",
"worst compactness",
"worst concavity",
"worst concave points",
"worst symmetry",
"worst fractal dimension"
],
"file_format": "csv"
},
"request_timeout_seconds": 300,
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-RadiusNeighborsClassifier.zip",
"description": "Neighbors integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"neighbors",
"LoadBreastCancer",
"FunctionTransformer",
"RadiusNeighborsClassifier"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
},
"target_column": "target",
"evaluation": null,
"generate_graphs": true
},
"topic": "pm.topic.ml.neighbors",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-11-30T20:58:09.8860507+00:00",
"end_time": "2026-11-30T20:58:10.354067+00:00",
"elapsed_milliseconds": 468.01,
"job_id": "34d52897-c0ee-604f-2329-ce6ff003cbe0",
"status": "completed",
"topic": "pm.topic.ml.neighbors",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"schema_version": "2.0",
"job_id": "34d52897-c0ee-604f-2329-ce6ff003cbe0",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "neighbors",
"task_family": "classification",
"algorithm": "RadiusNeighborsClassifier"
},
"input": {
"mode": "prepared_train_test",
"partitions": {
"train": {
"blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"row_count": 426
},
"test": {
"blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"row_count": 143
}
},
"feature_columns": [
"mean radius",
"mean texture",
"mean perimeter",
"mean area",
"mean smoothness",
"mean compactness",
"mean concavity",
"mean concave points",
"mean symmetry",
"mean fractal dimension",
"radius error",
"texture error",
"perimeter error",
"area error",
"smoothness error",
"compactness error",
"concavity error",
"concave points error",
"symmetry error",
"fractal dimension error",
"worst radius",
"worst texture",
"worst perimeter",
"worst area",
"worst smoothness",
"worst compactness",
"worst concavity",
"worst concave points",
"worst symmetry",
"worst fractal dimension"
],
"target_columns": [
"target"
]
},
"training": {
"effective_params": {
"algorithm": "auto",
"leaf_size": 30,
"metric": "minkowski",
"metric_params": null,
"n_jobs": null,
"outlier_label": "most_frequent",
"p": 2.0,
"radius": 100.0,
"weights": "uniform"
},
"metrics": {}
},
"evaluation": {
"partition": "test",
"metrics": {
"scope": "holdout",
"sample_count": 143,
"accuracy": 0.6293706293706294,
"f1_weighted": 0.48620906990005697,
"classes": [
0,
1
],
"confusion_matrix": [
[
0,
53
],
[
0,
90
]
]
}
},
"artifact_files": [
"model/model.joblib",
"predictions/predictions.csv",
"graphs/performance.png",
"graphs/performance.svg",
"graphs/confusion_matrix.png",
"graphs/confusion_matrix.svg",
"graphs/prediction_distribution.png",
"graphs/prediction_distribution.svg",
"result.json"
],
"extras": {
"algorithm": {
"learned": {
"n_features_in": 30,
"n_samples_fit": 426,
"effective_metric": "euclidean",
"effective_metric_params": {},
"classes": [
0,
1
],
"centroids": null,
"class_prior": null,
"components": null,
"n_iter": null,
"bandwidth": null,
"n_neighbors": null,
"offset": null
},
"warnings": [],
"data": {
"row_count": 569,
"column_count": 33,
"feature_count": 30,
"file_format": "csv",
"prediction_scope": "all_input_rows",
"training_row_indices": null
},
"runtime": {
"captured_at_utc": "2026-11-30T20:58:06.820019+00:00",
"python": {
"version": "3.12.16",
"implementation": "CPython"
},
"packages": {
"scikit-learn": "1.9.1",
"numpy": "2.5.4",
"pandas": "3.0.6",
"scipy": "1.18.1",
"pydantic": "2.14.1",
"joblib": "1.6.0",
"matplotlib": "3.11.2",
"azure-servicebus": "7.14.3",
"parallelmodel": "1.0.0"
},
"environment": {
"os": "Linux",
"os_release": "6.6.159.1-2.azl3",
"architecture": "x86_64",
"region": "uk1"
}
},
"execution": {
"executionName": "[REDACTED]",
"jobName": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replicaName": "[REDACTED]",
"processId": 1
}
}
},
"build": {
"built_at_utc": null,
"source": "unavailable",
"image_tag": null
}
}
}

First extract response​

{
"start_time": "2026-11-30T20:58:46.9165598+00:00",
"end_time": "2026-11-30T20:58:48.2676643+00:00",
"elapsed_milliseconds": 1351.09,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "211c9a93-b5f5-841d-f7a2-ce1b74547a45",
"uploaded_blob_id": "5cfafe1d-b02d-c529-c260-14635c1aad71",
"filename": "f4978c33-c723-2c6e-1c69-a8058400ccac.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 4195,
"upload_status_code": 200
}

Logs​

The trace includes the saved log response (57 entries).

Reproduce the operation​

dotnet test --filter "FullyQualifiedName~ParallelModel.Sdk.UnitTests.Neighbors.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.