Skip to main content

VotingClassifier

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 / VotingClassifierwhole runcompletedResult recordedrun-0059
LoadBreastCancer-TrainTestSplit-SimpleImputer-KBinsDiscretizer / VotingClassifierwhole runcompletedResult recordedrun-0068
LoadBreastCancer-TrainTestSplit-SimpleImputer-QuantileTransformer / VotingClassifierwhole runcompletedResult recordedrun-0077
LoadBreastCancer-TrainTestSplit-SimpleImputer-StandardScaler / VotingClassifierwhole runcompletedResult recordedrun-0086
LoadBreastCancer-TrainTestSplit-SimpleImputer-normalize / VotingClassifierwhole runcompletedResult recordedrun-0095
LoadWine-TrainTestSplit-SimpleImputer-FunctionTransformer / VotingClassifierwhole runcompletedResult recordedrun-0140
LoadWine-TrainTestSplit-SimpleImputer-KBinsDiscretizer / VotingClassifierwhole runcompletedResult recordedrun-0149
LoadWine-TrainTestSplit-SimpleImputer-QuantileTransformer / VotingClassifierwhole runcompletedResult recordedrun-0158
LoadWine-TrainTestSplit-SimpleImputer-StandardScaler / VotingClassifierwhole runcompletedResult recordedrun-0167
LoadWine-TrainTestSplit-SimpleImputer-normalize / VotingClassifierwhole runcompletedResult recordedrun-0176
MakeClassification-TrainTestSplit-SimpleImputer-KBinsDiscretizer / VotingClassifierwhole runcompletedResult recordedrun-0185
MakeClassification-TrainTestSplit-SimpleImputer-QuantileTransformer / VotingClassifierwhole runcompletedResult recordedrun-0194
MakeClassification-TrainTestSplit-SimpleImputer-StandardScaler / VotingClassifierwhole runcompletedResult recordedrun-0203
MakeClassification-TrainTestSplit-SimpleImputer-normalize / VotingClassifierwhole runcompletedResult recordedrun-0212

Representative execution​

Scenario: LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer / VotingClassifier; partition: whole run; observed status: completed. run-0059 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"
"VotingClassifier" => await SendTypedAsync(new VotingClassifierJobSendRequestModel
ClassifierType = "VotingClassifier",

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": "VotingClassifier",
"classifier_params": {
"estimators": [
{
"name": "logistic",
"estimator_type": "LogisticRegression",
"estimator_params": {}
},
{
"name": "forest",
"estimator_type": "RandomForestClassifier",
"estimator_params": {
"n_estimators": 18,
"max_depth": 5
}
}
],
"voting": "soft",
"weights": [
1,
2
]
},
"generate_graphs": true,
"target_column": "target"
},
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-VotingClassifier.zip",
"description": "Ensemble integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"ensemble",
"LoadBreastCancer",
"FunctionTransformer",
"VotingClassifier"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 1800
}

Send response​

{
"start_time": "2026-12-01T14:49:40.8127695+00:00",
"end_time": "2026-12-01T14:49:40.8715427+00:00",
"elapsed_milliseconds": 58.77,
"status": "published",
"job_id": "6e73d789-e20f-80c7-2bcf-30a581195cb3",
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "6e73d789-e20f-80c7-2bcf-30a581195cb3",
"json": {
"job_id": "6e73d789-e20f-80c7-2bcf-30a581195cb3",
"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": "VotingClassifier",
"classifier_params": {
"estimators": [
{
"name": "logistic",
"estimator_type": "LogisticRegression",
"estimator_params": {}
},
{
"name": "forest",
"estimator_type": "RandomForestClassifier",
"estimator_params": {
"n_estimators": 18,
"max_depth": 5
}
}
],
"voting": "soft",
"weights": [
1,
2
]
},
"generate_graphs": true,
"target_column": "target"
},
"request_timeout_seconds": 1800,
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-VotingClassifier.zip",
"description": "Ensemble integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"ensemble",
"LoadBreastCancer",
"FunctionTransformer",
"VotingClassifier"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
}
},
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-12-01T14:50:41.3247569+00:00",
"end_time": "2026-12-01T14:50:41.7440671+00:00",
"elapsed_milliseconds": 419.3,
"job_id": "6e73d789-e20f-80c7-2bcf-30a581195cb3",
"status": "completed",
"topic": "pm.topic.ml.ensemble",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"schema_version": "2.0",
"job_id": "6e73d789-e20f-80c7-2bcf-30a581195cb3",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "ensemble",
"task_family": "classification",
"algorithm": "VotingClassifier"
},
"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": {
"voting": "soft",
"weights": [
1.0,
2.0
],
"estimators": [
{
"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
}
},
{
"name": "forest",
"estimator_type": "RandomForestClassifier",
"estimator_params": {
"n_estimators": 18,
"max_depth": 5,
"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.958101574469861,
"recall_weighted": 0.958041958041958,
"f1_weighted": 0.9578690540229003,
"confusion_matrix": [
[
49,
4
],
[
2,
88
]
]
}
},
"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.958101574469861,
"recall_weighted": 0.958041958041958,
"f1_weighted": 0.9578690540229003,
"confusion_matrix": [
[
49,
4
],
[
2,
88
]
]
}
},
"runtime": {
"captured_at_utc": "2026-12-01T14:50:26.992894+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-01T14:50:52.5474999+00:00",
"end_time": "2026-12-01T14:50:53.3136133+00:00",
"elapsed_milliseconds": 766.1,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "2a50c77b-af53-07d1-881e-b4d0f173cfa4",
"uploaded_blob_id": "df650ab4-f292-bb3f-303a-d7ccea867814",
"filename": "b3391cd8-b684-567b-d93e-d74c60790741.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 5994,
"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.