Skip to main content

StackingClassifier

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 / StackingClassifierwhole runcompletedResult recordedrun-0058
LoadBreastCancer-TrainTestSplit-SimpleImputer-KBinsDiscretizer / StackingClassifierwhole runcompletedResult recordedrun-0067
LoadBreastCancer-TrainTestSplit-SimpleImputer-QuantileTransformer / StackingClassifierwhole runcompletedResult recordedrun-0076
LoadBreastCancer-TrainTestSplit-SimpleImputer-StandardScaler / StackingClassifierwhole runcompletedResult recordedrun-0085
LoadBreastCancer-TrainTestSplit-SimpleImputer-normalize / StackingClassifierwhole runcompletedResult recordedrun-0094
LoadWine-TrainTestSplit-SimpleImputer-FunctionTransformer / StackingClassifierwhole runcompletedResult recordedrun-0139
LoadWine-TrainTestSplit-SimpleImputer-KBinsDiscretizer / StackingClassifierwhole runcompletedResult recordedrun-0148
LoadWine-TrainTestSplit-SimpleImputer-QuantileTransformer / StackingClassifierwhole runcompletedResult recordedrun-0157
LoadWine-TrainTestSplit-SimpleImputer-StandardScaler / StackingClassifierwhole runcompletedResult recordedrun-0166
LoadWine-TrainTestSplit-SimpleImputer-normalize / StackingClassifierwhole runcompletedResult recordedrun-0175
MakeClassification-TrainTestSplit-SimpleImputer-KBinsDiscretizer / StackingClassifierwhole runcompletedResult recordedrun-0184
MakeClassification-TrainTestSplit-SimpleImputer-QuantileTransformer / StackingClassifierwhole runcompletedResult recordedrun-0193
MakeClassification-TrainTestSplit-SimpleImputer-StandardScaler / StackingClassifierwhole runcompletedResult recordedrun-0202
MakeClassification-TrainTestSplit-SimpleImputer-normalize / StackingClassifierwhole runcompletedResult recordedrun-0211

Representative execution​

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

"RandomForestRegressor", "RandomTreesEmbedding", "StackingClassifier",
"StackingClassifier" => await SendTypedAsync(new StackingClassifierJobSendRequestModel
ClassifierType = "StackingClassifier",

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": "StackingClassifier",
"classifier_params": {
"estimators": [
{
"name": "tree",
"estimator_type": "DecisionTreeClassifier",
"estimator_params": {
"max_depth": 4
}
},
{
"name": "logistic",
"estimator_type": "LogisticRegression",
"estimator_params": {}
}
],
"final_estimator": {
"name": "final",
"estimator_type": "LogisticRegression",
"estimator_params": {}
},
"cv": 3,
"passthrough": false
},
"generate_graphs": true,
"target_column": "target"
},
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-StackingClassifier.zip",
"description": "Ensemble integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"ensemble",
"LoadBreastCancer",
"FunctionTransformer",
"StackingClassifier"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 1800
}

Send response​

{
"start_time": "2026-12-01T13:06:01.1929756+00:00",
"end_time": "2026-12-01T13:06:01.5737822+00:00",
"elapsed_milliseconds": 380.8,
"status": "published",
"job_id": "8dde7698-54f2-3683-e1b5-d9307730d3cd",
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "8dde7698-54f2-3683-e1b5-d9307730d3cd",
"json": {
"job_id": "8dde7698-54f2-3683-e1b5-d9307730d3cd",
"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": "StackingClassifier",
"classifier_params": {
"estimators": [
{
"name": "tree",
"estimator_type": "DecisionTreeClassifier",
"estimator_params": {
"max_depth": 4
}
},
{
"name": "logistic",
"estimator_type": "LogisticRegression",
"estimator_params": {}
}
],
"final_estimator": {
"name": "final",
"estimator_type": "LogisticRegression",
"estimator_params": {}
},
"cv": 3,
"passthrough": false
},
"generate_graphs": true,
"target_column": "target"
},
"request_timeout_seconds": 1800,
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-StackingClassifier.zip",
"description": "Ensemble integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"ensemble",
"LoadBreastCancer",
"FunctionTransformer",
"StackingClassifier"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
}
},
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-12-01T13:07:04.3929397+00:00",
"end_time": "2026-12-01T13:07:04.9513288+00:00",
"elapsed_milliseconds": 558.38,
"job_id": "8dde7698-54f2-3683-e1b5-d9307730d3cd",
"status": "completed",
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"schema_version": "2.0",
"job_id": "8dde7698-54f2-3683-e1b5-d9307730d3cd",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "ensemble",
"task_family": "classification",
"algorithm": "StackingClassifier"
},
"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": {
"cv": 3,
"passthrough": false,
"estimators": [
{
"name": "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
}
},
{
"name": "logistic",
"estimator_type": "LogisticRegression",
"estimator_params": {
"n_estimators": null,
"max_depth": null,
"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
}
}
],
"final_estimator": {
"name": "final",
"estimator_type": "LogisticRegression",
"estimator_params": {
"n_estimators": null,
"max_depth": null,
"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.951048951048951,
"precision_weighted": 0.9509528932605856,
"recall_weighted": 0.951048951048951,
"f1_weighted": 0.9509510747079808,
"confusion_matrix": [
[
49,
4
],
[
3,
87
]
]
}
},
"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.951048951048951,
"precision_weighted": 0.9509528932605856,
"recall_weighted": 0.951048951048951,
"f1_weighted": 0.9509510747079808,
"confusion_matrix": [
[
49,
4
],
[
3,
87
]
]
}
},
"runtime": {
"captured_at_utc": "2026-12-01T13:06:42.456347+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-01T13:07:26.1838719+00:00",
"end_time": "2026-12-01T13:07:26.971204+00:00",
"elapsed_milliseconds": 787.32,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "e8b081d9-f005-1291-e9fc-b764428ae3e9",
"uploaded_blob_id": "0dd68f2c-dbbe-f5df-4881-158f2e22edab",
"filename": "fd8a52c2-3374-c07d-a10c-c560b0f7d463.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 6444,
"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.