Skip to main content

ParameterSampler

Model Selection standalone SDK operation. Source: 2.ML.ModelSelection.cs. Read the complete C# integration test and setup.

10 recorded job(s); 10 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
Fetch20Newsgroups / ParameterSamplerwhole runcompletedResult recordedrun-0408
LoadBreastCancer / ParameterSamplerwhole runcompletedResult recordedrun-0428
LoadDiabetes / ParameterSamplerwhole runcompletedResult recordedrun-0449
LoadIris / ParameterSamplerwhole runcompletedResult recordedrun-0468
LoadWine / ParameterSamplerwhole runcompletedResult recordedrun-0493
MakeBlobs / ParameterSamplerwhole runcompletedResult recordedrun-0516
MakeCircles / ParameterSamplerwhole runcompletedResult recordedrun-0540
MakeClassification / ParameterSamplerwhole runcompletedResult recordedrun-0564
MakeFriedman1 / ParameterSamplerwhole runcompletedResult recordedrun-0584
MakeRegression / ParameterSamplerwhole runcompletedResult recordedrun-0598

Representative execution​

Scenario: Fetch20Newsgroups / ParameterSampler; partition: whole run; observed status: completed. run-0408 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.

"ParameterSampler",
"ParameterSampler" => await SendTypedAsync(client, outputDirectory, requestFileName,
AlgorithmType = "ParameterSampler",
Output = CreateOutput("ParameterSampler"),

Request​

{
"input": {
"input_blob_id": "0231c095-3d8a-d813-ec28-e625aafaefc2",
"feature_columns": [
"text"
],
"file_format": "csv",
"algorithm_type": "ParameterSampler",
"algorithm_params": {
"param_distributions": {
"C": [
0.1,
1,
10
]
},
"n_iter": 2,
"random_state": 42
},
"evaluation": null,
"generate_graphs": false,
"target_column": "target"
},
"output": {
"name": "model-selection-ParameterSampler.zip",
"description": "Integration test for ParameterSampler",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"model-selection",
"integration-tests",
"ParameterSampler"
]
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-11-28T21:24:24.4728954+00:00",
"end_time": "2026-11-28T21:24:24.5564155+00:00",
"elapsed_milliseconds": 83.52,
"status": "published",
"job_id": "68286d94-2789-e806-443f-34aecb502d33",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "68286d94-2789-e806-443f-34aecb502d33",
"json": {
"job_id": "68286d94-2789-e806-443f-34aecb502d33",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"input_blob_id": "0231c095-3d8a-d813-ec28-e625aafaefc2",
"input_encryption_key": "[REDACTED]",
"feature_columns": [
"text"
],
"file_format": "csv",
"algorithm_type": "ParameterSampler",
"algorithm_params": {
"param_distributions": {
"C": [
0.1,
1,
10
]
},
"n_iter": 2,
"random_state": 42
}
},
"request_timeout_seconds": 300,
"output": {
"name": "model-selection-ParameterSampler.zip",
"description": "Integration test for ParameterSampler",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"model-selection",
"integration-tests",
"ParameterSampler"
],
"encryption_key": "[REDACTED]"
},
"target_column": "target",
"evaluation": null,
"generate_graphs": false
},
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-11-28T21:25:25.0303767+00:00",
"end_time": "2026-11-28T21:25:25.5287946+00:00",
"elapsed_milliseconds": 498.41,
"job_id": "68286d94-2789-e806-443f-34aecb502d33",
"status": "completed",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi",
"dead_letter_reason": null,
"dead_letter_error_description": null
}

Result response​

{
"jobId": "68286d94-2789-e806-443f-34aecb502d33",
"execution": {
"executionName": "[REDACTED]",
"jobName": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replicaName": "[REDACTED]",
"processId": 1
}
},
"algorithm_type": "ParameterSampler",
"stats": {
"row_count": 11314,
"column_count": 2,
"feature_count": 1,
"training_row_count": 11314,
"test_row_count": 0,
"feature_columns": [
"text"
],
"target_columns": [
"target"
],
"file_format": "csv",
"task_type": "parameters",
"metrics": {
"artifact_count": 1
}
},
"effective_params": {
"estimator": null,
"cv": null,
"n_jobs": null,
"param_name": null,
"param_range": null,
"classifier": null,
"method": null,
"threshold": null,
"response_method": null,
"param_grid": null,
"param_distributions": {
"C": [
0.1,
1,
10
]
},
"n_iter": 2,
"random_state": 42,
"n_splits": null,
"shuffle": null,
"train_sizes": null,
"p": null,
"n_permutations": null,
"n_repeats": null,
"test_size": null,
"stratify": null,
"thresholds": null,
"store_cv_results": null
},
"learned": {
"estimator": null,
"mean_validation_scores": null,
"fold_count": null,
"fold_sizes": null,
"fit_time": null,
"score_time": null,
"test_score": null,
"prediction_count": null,
"scores": null,
"mean_score": null,
"std_score": null,
"threshold": null,
"best_score": null,
"best_index": null,
"best_params": null,
"best_estimator": null,
"train_sizes": null,
"candidate_count": 2,
"score": null,
"p_value": null
},
"warnings": [],
"runtime": {
"captured_at_utc": "2026-11-28T21:25:03.901655+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": "model-selection-output.zip",
"artifact_files": [
"model.joblib",
"result.json",
"parameter_candidates.csv"
]
}

First extract response​

{
"start_time": "2026-11-28T21:25:28.8663782+00:00",
"end_time": "2026-11-28T21:25:29.8344571+00:00",
"elapsed_milliseconds": 968.07,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "2f9690ad-2aea-88d5-3416-93ea15bfa8e5",
"uploaded_blob_id": "56db5eb1-dc8e-7860-d39f-1cb926502ff6",
"filename": "8607d75e-605e-abe3-5257-fea8a65dc78e.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 440,
"upload_status_code": 200
}

Logs​

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

Reproduce the operation​

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