DecisionTreeRegressor
Decision Trees standalone SDK operation. Source: 6.2.ML.Tree.cs. Read the complete C# integration test and setup.
4 recorded job(s); 4 have a success/completed status and a saved result. These are API records rather than independently verified test passes.
Recorded scenarios
| Recorded scenario | Partition | Last status | Evidence | JSON trace |
|---|---|---|---|---|
| LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer / DecisionTreeRegressor | whole run | completed | Result recorded | run-1185 |
| LoadDiabetes-TrainTestSplit-SimpleImputer-QuantileTransformer / DecisionTreeRegressor | whole run | completed | Result recorded | run-1187 |
| LoadDiabetes-TrainTestSplit-SimpleImputer-StandardScaler / DecisionTreeRegressor | whole run | completed | Result recorded | run-1189 |
| LoadDiabetes-TrainTestSplit-SimpleImputer-normalize / DecisionTreeRegressor | whole run | completed | Result recorded | run-1191 |
Representative execution
Scenario: LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer / DecisionTreeRegressor; partition: whole run; observed status: completed. run-1185 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.
["DecisionTreeClassifier", "DecisionTreeRegressor", "ExtraTreeClassifier", "ExtraTreeRegressor"];
("LoadDiabetes" or "MakeRegression", _) => ["DecisionTreeRegressor", "ExtraTreeRegressor"],
"DecisionTreeRegressor" => await SendTypedAsync(new DecisionTreeRegressorJobSendRequestModel
ClassifierType = "DecisionTreeRegressor",
Request
{
"input": {
"train_blob_id": "d2f69bb1-53a6-d4db-3c1c-9d30bf53b443",
"test_blob_id": "2b8a06ec-5d7e-b2c4-bea7-13cdf2a9acd2",
"classifier_type": "DecisionTreeRegressor",
"classifier_params": {
"criterion": "squared_error",
"splitter": "best",
"random_state": 42
},
"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"
],
"file_format": "csv",
"target_column": "target",
"tree_artifacts": {
"plot_max_depth": 4,
"text_max_depth": 10,
"dot_max_depth": null,
"precision": 3,
"filled": true,
"rounded": true,
"node_ids": true,
"proportion": false,
"fontsize": 8
}
},
"output": {
"name": "LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer-DecisionTreeRegressor.zip",
"description": "Tree integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"tree",
"LoadDiabetes",
"KBinsDiscretizer",
"DecisionTreeRegressor"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 300
}
Send response
{
"start_time": "2026-11-30T15:18:39.4194603+00:00",
"end_time": "2026-11-30T15:18:39.496539+00:00",
"elapsed_milliseconds": 77.08,
"status": "published",
"job_id": "81d5682a-129d-7075-f202-7b6b79f05a7d",
"topic": "pm.topic.ml.tree",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "81d5682a-129d-7075-f202-7b6b79f05a7d",
"json": {
"job_id": "81d5682a-129d-7075-f202-7b6b79f05a7d",
"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]",
"classifier_type": "DecisionTreeRegressor",
"classifier_params": {
"criterion": "squared_error",
"splitter": "best",
"random_state": 42
},
"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"
],
"file_format": "csv"
},
"request_timeout_seconds": 300,
"output": {
"name": "LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer-DecisionTreeRegressor.zip",
"description": "Tree integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"tree",
"LoadDiabetes",
"KBinsDiscretizer",
"DecisionTreeRegressor"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
},
"target_column": "target",
"evaluation": null,
"tree_artifacts": {
"plot_max_depth": 4,
"text_max_depth": 10,
"dot_max_depth": null,
"precision": 3,
"filled": true,
"rounded": true,
"node_ids": true,
"proportion": false,
"fontsize": 8
}
},
"topic": "pm.topic.ml.tree",
"subscription": "cpu.0p5c.1gi"
}
}
Final recorded status
{
"start_time": "2026-11-30T15:19:39.8980207+00:00",
"end_time": "2026-11-30T15:19:40.3085297+00:00",
"elapsed_milliseconds": 410.5,
"job_id": "81d5682a-129d-7075-f202-7b6b79f05a7d",
"status": "completed",
"topic": "pm.topic.ml.tree",
"subscription": "cpu.0p5c.1gi"
}
Result response
{
"schema_version": "2.0",
"job_id": "81d5682a-129d-7075-f202-7b6b79f05a7d",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "tree",
"task_family": "regression",
"algorithm": "DecisionTreeRegressor"
},
"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": {
"ccp_alpha": 0.0,
"criterion": "squared_error",
"max_depth": null,
"max_features": null,
"max_leaf_nodes": null,
"min_impurity_decrease": 0.0,
"min_samples_leaf": 1,
"min_samples_split": 2,
"min_weight_fraction_leaf": 0.0,
"monotonic_cst": null,
"random_state": 42,
"splitter": "best"
},
"metrics": {
"scope": "training",
"sample_count": 331,
"mean_absolute_error": 5.11238670694864,
"mean_squared_error": 228.50664652567974,
"root_mean_squared_error": 15.116436303761537,
"r2": 0.96219671819703
}
},
"evaluation": {
"partition": "test",
"metrics": {
"scope": "holdout",
"sample_count": 111,
"mean_absolute_error": 55.734234234234236,
"mean_squared_error": 5265.394144144144,
"root_mean_squared_error": 72.5630356596535,
"r2": 0.04779574685400123
}
},
"artifact_files": [
"model/model.joblib",
"predictions/predictions.csv",
"extras/tree.dot",
"extras/tree.txt",
"graphs/tree.png",
"graphs/tree.svg",
"graphs/feature_importance.png",
"graphs/actual_vs_predicted.png",
"graphs/residuals.png",
"graphs/prediction_distribution.png",
"metrics/metrics.json",
"result.json"
],
"extras": {
"algorithm": {
"learned": {
"n_features_in": 28,
"n_outputs": 1,
"node_count": 595,
"max_depth": 13,
"n_leaves": 298,
"max_features": 28,
"feature_importances": [
0.03389638271376242,
0.013096254468738567,
0.040560138453763904,
0.0,
0.014510468394112814,
0.011690452595457609,
0.2794939501230022,
0.02710763922886037,
0.03033387089526181,
0.05870272533135428,
0.0210472398180879,
0.023307598519590148,
0.030333370836639152,
0.0115915360696675,
0.04321218029343092,
0.016283227625655032,
0.013601142366049927,
0.022251208326882696,
0.0192028003855156,
0.005860547040423672,
0.015041134565931622,
0.04136048926151461,
0.013413098364343713,
0.017795368037388713,
0.11391535769057164,
0.02149298035348232,
0.027767250042341585,
0.033131588198169144
]
},
"warnings": [],
"tree_artifacts": {
"plot_max_depth": 4,
"text_max_depth": 10,
"dot_max_depth": null,
"precision": 3,
"filled": true,
"rounded": true,
"node_ids": true,
"proportion": false,
"fontsize": 8
},
"data": {
"row_count": 442,
"column_count": 31,
"feature_count": 28,
"file_format": "csv"
},
"runtime": {
"captured_at_utc": "2026-11-30T15:19:20.712719+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": {
"executionName": "[REDACTED]",
"jobName": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replicaName": "[REDACTED]",
"processId": 1
}
}
},
"build": {
"built_at_utc": null,
"source": "unavailable",
"image_tag": null
}
}
}
First extract response
{
"start_time": "2026-11-30T15:20:03.0874218+00:00",
"end_time": "2026-11-30T15:20:04.4181761+00:00",
"elapsed_milliseconds": 1330.74,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "173cc525-18f2-f544-60ef-10dc4159fbc9",
"uploaded_blob_id": "40ed9728-3d41-b9ec-8221-f4a1f396c6b9",
"filename": "b0a816c0-324c-1231-a4b8-5b69c1575e53.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 5082,
"upload_status_code": 200
}
Logs
The trace includes the saved log response (59 entries).
Reproduce the operation
dotnet test --filter "FullyQualifiedName~ParallelModel.Sdk.UnitTests.Tree.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.