Skip to main content

StackingRegressor

Ensemble Methods standalone SDK operation. Source: 6.10.ML.Ensemble.cs. Read the complete C# integration test and setup.

8 recorded job(s); 8 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
LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer / StackingRegressorwhole runcompletedResult recordedrun-0103
LoadDiabetes-TrainTestSplit-SimpleImputer-QuantileTransformer / StackingRegressorwhole runcompletedResult recordedrun-0112
LoadDiabetes-TrainTestSplit-SimpleImputer-StandardScaler / StackingRegressorwhole runcompletedResult recordedrun-0121
LoadDiabetes-TrainTestSplit-SimpleImputer-normalize / StackingRegressorwhole runcompletedResult recordedrun-0130
MakeRegression-TrainTestSplit-SimpleImputer-KBinsDiscretizer / StackingRegressorwhole runcompletedResult recordedrun-0220
MakeRegression-TrainTestSplit-SimpleImputer-QuantileTransformer / StackingRegressorwhole runcompletedResult recordedrun-0229
MakeRegression-TrainTestSplit-SimpleImputer-StandardScaler / StackingRegressorwhole runcompletedResult recordedrun-0238
MakeRegression-TrainTestSplit-SimpleImputer-normalize / StackingRegressorwhole runcompletedResult recordedrun-0247

Representative execution​

Scenario: LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer / StackingRegressor; partition: whole run; observed status: completed. run-0103 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.

"StackingRegressor", "VotingClassifier", "VotingRegressor"
"StackingRegressor" => await SendTypedAsync(new StackingRegressorJobSendRequestModel
ClassifierType = "StackingRegressor",

Request​

{
"input": {
"train_blob_id": "d2f69bb1-53a6-d4db-3c1c-9d30bf53b443",
"test_blob_id": "2b8a06ec-5d7e-b2c4-bea7-13cdf2a9acd2",
"file_format": "csv",
"data_type": "numeric_table",
"feature_columns": [
"age_0.0",
"age_1.0",
"age_2.0",
"sex_0.0",
"bmi_0.0",
"bmi_1.0",
"bmi_2.0",
"bp_0.0",
"bp_1.0",
"bp_2.0",
"s1_0.0",
"s1_1.0",
"s1_2.0",
"s2_0.0",
"s2_1.0",
"s2_2.0",
"s3_0.0",
"s3_1.0",
"s3_2.0",
"s4_0.0",
"s4_1.0",
"s4_2.0",
"s5_0.0",
"s5_1.0",
"s5_2.0",
"s6_0.0",
"s6_1.0",
"s6_2.0"
],
"classifier_type": "StackingRegressor",
"classifier_params": {
"estimators": [
{
"name": "tree",
"estimator_type": "DecisionTreeRegressor",
"estimator_params": {
"max_depth": 4
}
},
{
"name": "ridge",
"estimator_type": "Ridge",
"estimator_params": {
"alpha": 1
}
}
],
"final_estimator": {
"name": "final",
"estimator_type": "Ridge",
"estimator_params": {
"alpha": 1
}
},
"cv": 3,
"passthrough": true
},
"generate_graphs": true,
"target_column": "target"
},
"output": {
"name": "LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer-StackingRegressor.zip",
"description": "Ensemble integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"ensemble",
"LoadDiabetes",
"KBinsDiscretizer",
"StackingRegressor"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 1800
}

Send response​

{
"start_time": "2026-12-01T13:51:12.3215998+00:00",
"end_time": "2026-12-01T13:51:12.5883763+00:00",
"elapsed_milliseconds": 266.77,
"status": "published",
"job_id": "6a6558ee-763e-d7b7-3d01-f0c85b7cd611",
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "6a6558ee-763e-d7b7-3d01-f0c85b7cd611",
"json": {
"job_id": "6a6558ee-763e-d7b7-3d01-f0c85b7cd611",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"train_blob_id": "d2f69bb1-53a6-d4db-3c1c-9d30bf53b443",
"train_encryption_key": "[REDACTED]",
"test_blob_id": "2b8a06ec-5d7e-b2c4-bea7-13cdf2a9acd2",
"test_encryption_key": "[REDACTED]",
"file_format": "csv",
"data_type": "numeric_table",
"feature_columns": [
"age_0.0",
"age_1.0",
"age_2.0",
"sex_0.0",
"bmi_0.0",
"bmi_1.0",
"bmi_2.0",
"bp_0.0",
"bp_1.0",
"bp_2.0",
"s1_0.0",
"s1_1.0",
"s1_2.0",
"s2_0.0",
"s2_1.0",
"s2_2.0",
"s3_0.0",
"s3_1.0",
"s3_2.0",
"s4_0.0",
"s4_1.0",
"s4_2.0",
"s5_0.0",
"s5_1.0",
"s5_2.0",
"s6_0.0",
"s6_1.0",
"s6_2.0"
],
"classifier_type": "StackingRegressor",
"classifier_params": {
"estimators": [
{
"name": "tree",
"estimator_type": "DecisionTreeRegressor",
"estimator_params": {
"max_depth": 4
}
},
{
"name": "ridge",
"estimator_type": "Ridge",
"estimator_params": {
"alpha": 1
}
}
],
"final_estimator": {
"name": "final",
"estimator_type": "Ridge",
"estimator_params": {
"alpha": 1
}
},
"cv": 3,
"passthrough": true
},
"generate_graphs": true,
"target_column": "target"
},
"request_timeout_seconds": 1800,
"output": {
"name": "LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer-StackingRegressor.zip",
"description": "Ensemble integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"ensemble",
"LoadDiabetes",
"KBinsDiscretizer",
"StackingRegressor"
],
"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:52:13.0208928+00:00",
"end_time": "2026-12-01T13:52:13.5796271+00:00",
"elapsed_milliseconds": 558.73,
"job_id": "6a6558ee-763e-d7b7-3d01-f0c85b7cd611",
"status": "completed",
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"schema_version": "2.0",
"job_id": "6a6558ee-763e-d7b7-3d01-f0c85b7cd611",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "ensemble",
"task_family": "regression",
"algorithm": "StackingRegressor"
},
"input": {
"mode": "prepared_train_test",
"partitions": {
"train": {
"blob_id": "d2f69bb1-53a6-d4db-3c1c-9d30bf53b443",
"row_count": 331
},
"test": {
"blob_id": "2b8a06ec-5d7e-b2c4-bea7-13cdf2a9acd2",
"row_count": 111
}
},
"feature_columns": [
"age_0.0",
"age_1.0",
"age_2.0",
"sex_0.0",
"bmi_0.0",
"bmi_1.0",
"bmi_2.0",
"bp_0.0",
"bp_1.0",
"bp_2.0",
"s1_0.0",
"s1_1.0",
"s1_2.0",
"s2_0.0",
"s2_1.0",
"s2_2.0",
"s3_0.0",
"s3_1.0",
"s3_2.0",
"s4_0.0",
"s4_1.0",
"s4_2.0",
"s5_0.0",
"s5_1.0",
"s5_2.0",
"s6_0.0",
"s6_1.0",
"s6_2.0"
],
"target_columns": [
"target"
]
},
"training": {
"effective_params": {
"cv": 3,
"passthrough": true,
"estimators": [
{
"name": "tree",
"estimator_type": "DecisionTreeRegressor",
"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": "ridge",
"estimator_type": "Ridge",
"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": 1.0,
"probability": null,
"kernel": null
}
}
],
"final_estimator": {
"name": "final",
"estimator_type": "Ridge",
"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": 1.0,
"probability": null,
"kernel": null
}
}
},
"metrics": {}
},
"evaluation": {
"partition": "test",
"metrics": {
"mean_absolute_error": 44.091955717807664,
"root_mean_squared_error": 57.359619652756805,
"r2_score": 0.4050071365748523
}
},
"artifact_files": [
"model/model.joblib",
"predictions/test_predictions.csv",
"metrics/metrics.json",
"graphs/predicted_vs_actual.png",
"result.json"
],
"extras": {
"algorithm": {
"learned": {
"n_features_in": 28
},
"warnings": [],
"stats": {
"row_count": 442,
"column_count": 31,
"feature_count": 28,
"training_row_count": 331,
"test_row_count": 111,
"feature_columns": [
"age_0.0",
"age_1.0",
"age_2.0",
"sex_0.0",
"bmi_0.0",
"bmi_1.0",
"bmi_2.0",
"bp_0.0",
"bp_1.0",
"bp_2.0",
"s1_0.0",
"s1_1.0",
"s1_2.0",
"s2_0.0",
"s2_1.0",
"s2_2.0",
"s3_0.0",
"s3_1.0",
"s3_2.0",
"s4_0.0",
"s4_1.0",
"s4_2.0",
"s5_0.0",
"s5_1.0",
"s5_2.0",
"s6_0.0",
"s6_1.0",
"s6_2.0"
],
"target_column": "target",
"sample_weight_column": null,
"file_format": "csv",
"task_type": "regression",
"metrics": {
"mean_absolute_error": 44.091955717807664,
"root_mean_squared_error": 57.359619652756805,
"r2_score": 0.4050071365748523
}
},
"runtime": {
"captured_at_utc": "2026-12-01T13:51:42.560354+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:52:23.4086716+00:00",
"end_time": "2026-12-01T13:52:24.3367001+00:00",
"elapsed_milliseconds": 928.02,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "37879d4b-83c2-6f7a-66fc-09adfdb3504d",
"uploaded_blob_id": "4521c365-9ad3-1b7d-e756-a60c66a85a31",
"filename": "9a892dbe-5d40-7c09-f791-8414b9e2ec63.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 5372,
"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.