Skip to main content

BaggingClassifier

Ensemble Methods standalone SDK operation. Source: 6.10.ML.Ensemble.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 / BaggingClassifierwhole runcompletedResult recordedrun-0052
LoadBreastCancer-TrainTestSplit-SimpleImputer-KBinsDiscretizer / BaggingClassifierwhole runcompletedResult recordedrun-0061
LoadBreastCancer-TrainTestSplit-SimpleImputer-QuantileTransformer / BaggingClassifierwhole runcompletedResult recordedrun-0070
LoadBreastCancer-TrainTestSplit-SimpleImputer-StandardScaler / BaggingClassifierwhole runcompletedResult recordedrun-0079
LoadBreastCancer-TrainTestSplit-SimpleImputer-normalize / BaggingClassifierwhole runcompletedResult recordedrun-0088
LoadWine-TrainTestSplit-SimpleImputer-FunctionTransformer / BaggingClassifierwhole runcompletedResult recordedrun-0133
LoadWine-TrainTestSplit-SimpleImputer-KBinsDiscretizer / BaggingClassifierwhole runcompletedResult recordedrun-0142
LoadWine-TrainTestSplit-SimpleImputer-QuantileTransformer / BaggingClassifierwhole runcompletedResult recordedrun-0151
LoadWine-TrainTestSplit-SimpleImputer-StandardScaler / BaggingClassifierwhole runcompletedResult recordedrun-0160
LoadWine-TrainTestSplit-SimpleImputer-normalize / BaggingClassifierwhole runcompletedResult recordedrun-0169
MakeClassification-TrainTestSplit-SimpleImputer-KBinsDiscretizer / BaggingClassifierwhole runcompletedResult recordedrun-0178
MakeClassification-TrainTestSplit-SimpleImputer-QuantileTransformer / BaggingClassifierwhole runcompletedResult recordedrun-0187
MakeClassification-TrainTestSplit-SimpleImputer-StandardScaler / BaggingClassifierwhole runcompletedResult recordedrun-0196
MakeClassification-TrainTestSplit-SimpleImputer-normalize / BaggingClassifierwhole runcompletedResult recordedrun-0205

Representative execution​

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

"AdaBoostClassifier", "AdaBoostRegressor", "BaggingClassifier",
"BaggingClassifier" => await SendTypedAsync(new BaggingClassifierJobSendRequestModel
ClassifierType = "BaggingClassifier",

Request​

{
"input": {
"train_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"test_blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"file_format": "csv",
"data_type": "numeric_table",
"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"
],
"classifier_type": "BaggingClassifier",
"classifier_params": {
"n_estimators": 12,
"max_samples": 0.8,
"estimator": {
"name": "base_tree",
"estimator_type": "DecisionTreeClassifier",
"estimator_params": {
"max_depth": 4
}
}
},
"generate_graphs": true,
"target_column": "target"
},
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-BaggingClassifier.zip",
"description": "Ensemble integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"ensemble",
"LoadBreastCancer",
"FunctionTransformer",
"BaggingClassifier"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 1800
}

Send response​

{
"start_time": "2026-12-01T16:25:22.0983842+00:00",
"end_time": "2026-12-01T16:25:22.1539522+00:00",
"elapsed_milliseconds": 55.57,
"status": "published",
"job_id": "9357cd3f-dc79-37c4-399c-04fe6c6a18ef",
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "9357cd3f-dc79-37c4-399c-04fe6c6a18ef",
"json": {
"job_id": "9357cd3f-dc79-37c4-399c-04fe6c6a18ef",
"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]",
"file_format": "csv",
"data_type": "numeric_table",
"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"
],
"classifier_type": "BaggingClassifier",
"classifier_params": {
"n_estimators": 12,
"max_samples": 0.8,
"estimator": {
"name": "base_tree",
"estimator_type": "DecisionTreeClassifier",
"estimator_params": {
"max_depth": 4
}
}
},
"generate_graphs": true,
"target_column": "target"
},
"request_timeout_seconds": 1800,
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-BaggingClassifier.zip",
"description": "Ensemble integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"ensemble",
"LoadBreastCancer",
"FunctionTransformer",
"BaggingClassifier"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
}
},
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-12-01T16:26:52.7252691+00:00",
"end_time": "2026-12-01T16:26:53.1196939+00:00",
"elapsed_milliseconds": 394.42,
"job_id": "9357cd3f-dc79-37c4-399c-04fe6c6a18ef",
"status": "completed",
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"schema_version": "2.0",
"job_id": "9357cd3f-dc79-37c4-399c-04fe6c6a18ef",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "ensemble",
"task_family": "classification",
"algorithm": "BaggingClassifier"
},
"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": {
"n_estimators": 12,
"max_samples": 0.8,
"random_state": 42,
"estimator": {
"name": "base_tree",
"estimator_type": "DecisionTreeClassifier",
"estimator_params": {
"n_estimators": null,
"max_depth": 4,
"min_samples_split": null,
"min_samples_leaf": null,
"max_features": null,
"random_state": null,
"n_neighbors": null,
"C": null,
"alpha": null,
"probability": null,
"kernel": null
}
}
},
"metrics": {}
},
"evaluation": {
"partition": "test",
"metrics": {
"accuracy": 0.958041958041958,
"precision_weighted": 0.9589589741565424,
"recall_weighted": 0.958041958041958,
"f1_weighted": 0.9576753170103554,
"confusion_matrix": [
[
48,
5
],
[
1,
89
]
]
}
},
"artifact_files": [
"model/model.joblib",
"predictions/test_predictions.csv",
"metrics/metrics.json",
"graphs/confusion_matrix.png",
"result.json"
],
"extras": {
"algorithm": {
"learned": {
"classes": [
"0",
"1"
],
"n_features_in": 30
},
"warnings": [],
"stats": {
"row_count": 569,
"column_count": 33,
"feature_count": 30,
"training_row_count": 426,
"test_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_column": "target",
"sample_weight_column": null,
"file_format": "csv",
"task_type": "classification",
"metrics": {
"accuracy": 0.958041958041958,
"precision_weighted": 0.9589589741565424,
"recall_weighted": 0.958041958041958,
"f1_weighted": 0.9576753170103554,
"confusion_matrix": [
[
48,
5
],
[
1,
89
]
]
}
},
"runtime": {
"captured_at_utc": "2026-12-01T16:26:30.071916+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": {
"execution_name": "[REDACTED]",
"job_name": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replica_name": "[REDACTED]",
"process_id": 1
}
}
},
"build": {
"built_at_utc": null,
"source": "unavailable",
"image_tag": null
}
}
}

First extract response​

{
"start_time": "2026-12-01T16:27:01.5739152+00:00",
"end_time": "2026-12-01T16:27:03.2875137+00:00",
"elapsed_milliseconds": 1713.58,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "983c8877-d5fb-b447-a88d-a8657cf806ab",
"uploaded_blob_id": "77471879-fc5e-ed79-d6e6-35b5a1419951",
"filename": "97e8cf91-776a-cad2-fd54-3b80fc83c8c7.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 5454,
"upload_status_code": 200
}

Logs​

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

Reproduce the operation​

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