KBinsDiscretizer
Numerical Preprocessing standalone SDK operation. Source: 4.3.1.2.ML.Preprocessing.Numerical.cs. Read the complete C# integration test and setup.
30 recorded job(s); 30 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 |
|---|---|---|---|---|
| LoadBreastCancer / TrainTestSplit / IterativeImputer / KBinsDiscretizer | test | completed | Result recorded | run-0948 |
| LoadBreastCancer / TrainTestSplit / IterativeImputer / KBinsDiscretizer | train | completed | Result recorded | run-0949 |
| LoadBreastCancer / TrainTestSplit / KNNImputer / KBinsDiscretizer | test | completed | Result recorded | run-0960 |
| LoadBreastCancer / TrainTestSplit / KNNImputer / KBinsDiscretizer | train | completed | Result recorded | run-0961 |
| LoadBreastCancer / TrainTestSplit / SimpleImputer / KBinsDiscretizer | test | completed | Result recorded | run-0972 |
| LoadBreastCancer / TrainTestSplit / SimpleImputer / KBinsDiscretizer | train | completed | Result recorded | run-0973 |
| LoadDiabetes / TrainTestSplit / IterativeImputer / KBinsDiscretizer | test | completed | Result recorded | run-0982 |
| LoadDiabetes / TrainTestSplit / IterativeImputer / KBinsDiscretizer | train | completed | Result recorded | run-0983 |
| LoadDiabetes / TrainTestSplit / KNNImputer / KBinsDiscretizer | test | completed | Result recorded | run-0990 |
| LoadDiabetes / TrainTestSplit / KNNImputer / KBinsDiscretizer | train | completed | Result recorded | run-0991 |
| LoadDiabetes / TrainTestSplit / SimpleImputer / KBinsDiscretizer | test | completed | Result recorded | run-0998 |
| LoadDiabetes / TrainTestSplit / SimpleImputer / KBinsDiscretizer | train | completed | Result recorded | run-0999 |
| LoadWine / TrainTestSplit / IterativeImputer / KBinsDiscretizer | test | completed | Result recorded | run-1008 |
| LoadWine / TrainTestSplit / IterativeImputer / KBinsDiscretizer | train | completed | Result recorded | run-1009 |
| LoadWine / TrainTestSplit / KNNImputer / KBinsDiscretizer | test | completed | Result recorded | run-1020 |
| LoadWine / TrainTestSplit / KNNImputer / KBinsDiscretizer | train | completed | Result recorded | run-1021 |
| LoadWine / TrainTestSplit / SimpleImputer / KBinsDiscretizer | test | completed | Result recorded | run-1032 |
| LoadWine / TrainTestSplit / SimpleImputer / KBinsDiscretizer | train | completed | Result recorded | run-1033 |
| MakeClassification / TrainTestSplit / IterativeImputer / KBinsDiscretizer | test | completed | Result recorded | run-1042 |
| MakeClassification / TrainTestSplit / IterativeImputer / KBinsDiscretizer | train | completed | Result recorded | run-1043 |
| MakeClassification / TrainTestSplit / KNNImputer / KBinsDiscretizer | test | completed | Result recorded | run-1052 |
| MakeClassification / TrainTestSplit / KNNImputer / KBinsDiscretizer | train | completed | Result recorded | run-1053 |
| MakeClassification / TrainTestSplit / SimpleImputer / KBinsDiscretizer | test | completed | Result recorded | run-1062 |
| MakeClassification / TrainTestSplit / SimpleImputer / KBinsDiscretizer | train | completed | Result recorded | run-1063 |
| MakeRegression / TrainTestSplit / IterativeImputer / KBinsDiscretizer | test | completed | Result recorded | run-1072 |
| MakeRegression / TrainTestSplit / IterativeImputer / KBinsDiscretizer | train | completed | Result recorded | run-1073 |
| MakeRegression / TrainTestSplit / KNNImputer / KBinsDiscretizer | test | completed | Result recorded | run-1080 |
| MakeRegression / TrainTestSplit / KNNImputer / KBinsDiscretizer | train | completed | Result recorded | run-1081 |
| MakeRegression / TrainTestSplit / SimpleImputer / KBinsDiscretizer | test | completed | Result recorded | run-1088 |
| MakeRegression / TrainTestSplit / SimpleImputer / KBinsDiscretizer | train | completed | Result recorded | run-1089 |
Representative execution
Scenario: LoadBreastCancer / TrainTestSplit / IterativeImputer / KBinsDiscretizer; partition: test; observed status: completed. run-0948 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.
private static readonly string[] Algorithms = { "FunctionTransformer", "KBinsDiscretizer", "label_binarize",
"KBinsDiscretizer" when trainInput.VaryingColumns.Count == 0 =>
case "KBinsDiscretizer":
PreprocessorType = "KBinsDiscretizer",
Request
{
"input": {
"input_blob_id": "8924d463-a53c-b7ed-2636-78a1e388e97d",
"preprocessor_type": "KBinsDiscretizer",
"preprocessor_params": {
"n_bins": 3,
"random_state": 42
},
"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",
"keep_other_columns": true,
"generate_graphs": false
},
"output": {
"name": "preprocessing-KBinsDiscretizer-imputed.zip",
"description": "Preprocessing KBinsDiscretizer on Impute artifact imputed.csv",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"preprocessing",
"impute",
"integration-tests",
"KBinsDiscretizer"
]
},
"request_timeout_seconds": 300
}
Send response
{
"start_time": "2026-11-29T15:57:26.255405+00:00",
"end_time": "2026-11-29T15:57:26.333867+00:00",
"elapsed_milliseconds": 78.46,
"status": "published",
"job_id": "fef02b80-9ede-46c9-68db-09048de93451",
"topic": "pm.topic.ml.preprocessing",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "fef02b80-9ede-46c9-68db-09048de93451",
"json": {
"job_id": "fef02b80-9ede-46c9-68db-09048de93451",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"input_blob_id": "8924d463-a53c-b7ed-2636-78a1e388e97d",
"input_encryption_key": "[REDACTED]",
"preprocessor_type": "KBinsDiscretizer",
"preprocessor_params": {
"n_bins": 3,
"random_state": 42
},
"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": "preprocessing-KBinsDiscretizer-imputed.zip",
"description": "Preprocessing KBinsDiscretizer on Impute artifact imputed.csv",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"preprocessing",
"impute",
"integration-tests",
"KBinsDiscretizer"
],
"encryption_key": "[REDACTED]"
},
"target_column": "target",
"keep_other_columns": true,
"generate_graphs": false
},
"topic": "pm.topic.ml.preprocessing",
"subscription": "cpu.0p5c.1gi"
}
}
Final recorded status
{
"start_time": "2026-11-29T15:57:56.998426+00:00",
"end_time": "2026-11-29T15:57:57.8716365+00:00",
"elapsed_milliseconds": 873.2,
"job_id": "fef02b80-9ede-46c9-68db-09048de93451",
"status": "completed",
"topic": "pm.topic.ml.preprocessing",
"subscription": "cpu.0p5c.1gi",
"dead_letter_reason": null,
"dead_letter_error_description": null
}
Result response
{
"jobId": "fef02b80-9ede-46c9-68db-09048de93451",
"execution": {
"executionName": "[REDACTED]",
"jobName": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replicaName": "[REDACTED]",
"processId": 1
}
},
"preprocessor_type": "KBinsDiscretizer",
"operation_kind": "transformer",
"stats": {
"row_count": 143,
"column_count": 33,
"feature_count": 30,
"training_row_count": 143,
"test_row_count": 0,
"output_feature_count": 90,
"output_column_count": 93,
"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"
],
"output_feature_columns": [
"mean radius_0.0",
"mean radius_1.0",
"mean radius_2.0",
"mean texture_0.0",
"mean texture_1.0",
"mean texture_2.0",
"mean perimeter_0.0",
"mean perimeter_1.0",
"mean perimeter_2.0",
"mean area_0.0",
"mean area_1.0",
"mean area_2.0",
"mean smoothness_0.0",
"mean smoothness_1.0",
"mean smoothness_2.0",
"mean compactness_0.0",
"mean compactness_1.0",
"mean compactness_2.0",
"mean concavity_0.0",
"mean concavity_1.0",
"mean concavity_2.0",
"mean concave points_0.0",
"mean concave points_1.0",
"mean concave points_2.0",
"mean symmetry_0.0",
"mean symmetry_1.0",
"mean symmetry_2.0",
"mean fractal dimension_0.0",
"mean fractal dimension_1.0",
"mean fractal dimension_2.0",
"radius error_0.0",
"radius error_1.0",
"radius error_2.0",
"texture error_0.0",
"texture error_1.0",
"texture error_2.0",
"perimeter error_0.0",
"perimeter error_1.0",
"perimeter error_2.0",
"area error_0.0",
"area error_1.0",
"area error_2.0",
"smoothness error_0.0",
"smoothness error_1.0",
"smoothness error_2.0",
"compactness error_0.0",
"compactness error_1.0",
"compactness error_2.0",
"concavity error_0.0",
"concavity error_1.0",
"concavity error_2.0",
"concave points error_0.0",
"concave points error_1.0",
"concave points error_2.0",
"symmetry error_0.0",
"symmetry error_1.0",
"symmetry error_2.0",
"fractal dimension error_0.0",
"fractal dimension error_1.0",
"fractal dimension error_2.0",
"worst radius_0.0",
"worst radius_1.0",
"worst radius_2.0",
"worst texture_0.0",
"worst texture_1.0",
"worst texture_2.0",
"worst perimeter_0.0",
"worst perimeter_1.0",
"worst perimeter_2.0",
"worst area_0.0",
"worst area_1.0",
"worst area_2.0",
"worst smoothness_0.0",
"worst smoothness_1.0",
"worst smoothness_2.0",
"worst compactness_0.0",
"worst compactness_1.0",
"worst compactness_2.0",
"worst concavity_0.0",
"worst concavity_1.0",
"worst concavity_2.0",
"worst concave points_0.0",
"worst concave points_1.0",
"worst concave points_2.0",
"worst symmetry_0.0",
"worst symmetry_1.0",
"worst symmetry_2.0",
"worst fractal dimension_0.0",
"worst fractal dimension_1.0",
"worst fractal dimension_2.0"
],
"retained_columns": [
"row_index",
"partition",
"target"
],
"target_column": "target",
"file_format": "csv",
"task_type": "preprocessing",
"sparse_output": true,
"cross_fitted_training": false
},
"effective_params": {
"n_bins": 3,
"encode": "onehot",
"strategy": "quantile",
"quantile_method": "averaged_inverted_cdf",
"dtype": null,
"subsample": 200000,
"random_state": 42
},
"learned": {
"n_features_in": 30,
"n_bins": [
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3,
3
],
"bin_edges": [
[
7.76,
12.31,
14.86,
27.42
],
[
10.89,
17.43,
20.86,
29.33
],
[
47.92,
79.19,
96.12,
186.9
],
[
181.0,
467.8,
674.5,
2501.0
],
[
0.05263,
0.08992,
0.1025,
0.1634
],
[
0.03116,
0.07589,
0.1204,
0.3114
],
[
0.0,
0.04187,
0.101,
0.4268
],
[
0.0,
0.02788,
0.05778,
0.2012
],
[
0.1274,
0.1709,
0.1936,
0.2655
],
[
0.05044,
0.05941,
0.06464,
0.09502
],
[
0.1166,
0.2512,
0.4255,
2.547
],
[
0.3621,
1.003,
1.385,
3.12
],
[
0.7714,
1.865,
3.061,
18.65
],
[
6.802,
19.75,
34.78,
542.2
],
[
0.002887,
0.005501,
0.007509,
0.02333
],
[
0.003746,
0.01647,
0.02731,
0.09806
],
[
0.0,
0.01851,
0.03342,
0.1278
],
[
0.0,
0.009443,
0.01361,
0.03487
],
[
0.01083,
0.01635,
0.02143,
0.04547
],
[
0.0009502,
0.002783,
0.003813,
0.0113
],
[
9.456,
13.45,
16.84,
36.04
],
[
14.1,
22.91,
27.96,
41.85
],
[
59.16,
87.78,
113.1,
251.2
],
[
268.6,
562.0,
862.1,
4254.0
],
[
0.08864,
0.1218,
0.1401,
0.2226
],
[
0.04619,
0.173,
0.2698,
0.8681
],
[
0.0,
0.1609,
0.3207,
0.9387
],
[
0.0,
0.08235,
0.1424,
0.2688
],
[
0.1987,
0.2622,
0.3014,
0.4753
],
[
0.05933,
0.07431,
0.08701,
0.1431
]
]
},
"warnings": [],
"runtime": {
"captured_at_utc": "2026-11-29T15:57:56.696306+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"
}
},
"artifact_format": "zip",
"artifact_archive": "preprocessing-output.zip",
"artifact_files": [
"model.joblib",
"transformed.csv",
"partitions.csv",
"result.json",
"transformed.npz"
]
}
First extract response
{
"start_time": "2026-11-29T15:58:02.8849987+00:00",
"end_time": "2026-11-29T15:58:03.6638547+00:00",
"elapsed_milliseconds": 778.85,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "9f76ae88-3ec7-9fed-9173-00edb8cd268f",
"uploaded_blob_id": "8e669396-f739-f1ec-2eff-1bd05495a998",
"filename": "d8f4207d-1e23-e586-1411-0b6bfa6af3dd.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 2894,
"upload_status_code": 200
}
Logs
The trace includes the saved log response (40 entries).
Reproduce the operation
dotnet test --filter "FullyQualifiedName~ParallelModel.Sdk.UnitTests.PreprocessingNumerical.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.