Skip to main content

KernelRidge

Kernel Ridge standalone SDK operation. Source: 6.6.ML.KernelRidge.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 / KernelRidgewhole runcompletedResult recordedrun-0353
LoadDiabetes-TrainTestSplit-SimpleImputer-QuantileTransformer / KernelRidgewhole runcompletedResult recordedrun-0354
LoadDiabetes-TrainTestSplit-SimpleImputer-StandardScaler / KernelRidgewhole runcompletedResult recordedrun-0355
LoadDiabetes-TrainTestSplit-SimpleImputer-normalize / KernelRidgewhole runcompletedResult recordedrun-0356
MakeRegression-TrainTestSplit-SimpleImputer-KBinsDiscretizer / KernelRidgewhole runcompletedResult recordedrun-0357
MakeRegression-TrainTestSplit-SimpleImputer-QuantileTransformer / KernelRidgewhole runcompletedResult recordedrun-0358
MakeRegression-TrainTestSplit-SimpleImputer-StandardScaler / KernelRidgewhole runcompletedResult recordedrun-0359
MakeRegression-TrainTestSplit-SimpleImputer-normalize / KernelRidgewhole runcompletedResult recordedrun-0360

Representative execution​

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

[Collection("KernelRidge")]
private static readonly string[] Algorithms = ["KernelRidge"];
"KernelRidge" => await SendTypedAsync(new KernelRidgeJobSendRequestModel
ClassifierType = "KernelRidge",

Request​

{
"input": {
"train_blob_id": "d2f69bb1-53a6-d4db-3c1c-9d30bf53b443",
"test_blob_id": "2b8a06ec-5d7e-b2c4-bea7-13cdf2a9acd2",
"classifier_type": "KernelRidge",
"classifier_params": {
"alpha": 1,
"kernel": "rbf",
"gamma": 0.1
},
"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"
},
"output": {
"name": "LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer-KernelRidge.zip",
"description": "Kernel Ridge integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"kernel-ridge",
"LoadDiabetes",
"KBinsDiscretizer",
"KernelRidge"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-11-30T18:20:54.6350998+00:00",
"end_time": "2026-11-30T18:20:54.6903179+00:00",
"elapsed_milliseconds": 55.22,
"status": "published",
"job_id": "08d2e4e6-d478-7fb7-7d87-677b3a08d99a",
"topic": "pm.topic.ml.kernelridge",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "08d2e4e6-d478-7fb7-7d87-677b3a08d99a",
"json": {
"job_id": "08d2e4e6-d478-7fb7-7d87-677b3a08d99a",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"train_blob_id": "d2f69bb1-53a6-d4db-3c1c-9d30bf53b443",
"test_blob_id": "2b8a06ec-5d7e-b2c4-bea7-13cdf2a9acd2",
"train_encryption_key": "[REDACTED]",
"test_encryption_key": "[REDACTED]",
"classifier_type": "KernelRidge",
"classifier_params": {
"alpha": 1,
"kernel": "rbf",
"gamma": 0.1
},
"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-KernelRidge.zip",
"description": "Kernel Ridge integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"kernel-ridge",
"LoadDiabetes",
"KBinsDiscretizer",
"KernelRidge"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
},
"target_column": "target",
"evaluation": null
},
"topic": "pm.topic.ml.kernelridge",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-11-30T18:21:55.0323989+00:00",
"end_time": "2026-11-30T18:21:55.8250705+00:00",
"elapsed_milliseconds": 792.66,
"job_id": "08d2e4e6-d478-7fb7-7d87-677b3a08d99a",
"status": "completed",
"topic": "pm.topic.ml.kernelridge",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"schema_version": "2.0",
"job_id": "08d2e4e6-d478-7fb7-7d87-677b3a08d99a",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "kernel_ridge",
"task_family": "regression",
"algorithm": "KernelRidge"
},
"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": {
"alpha": 1.0,
"coef0": 1.0,
"degree": 3,
"gamma": 0.1,
"kernel": "rbf",
"kernel_params": null
},
"metrics": {
"sample_count": 331,
"mean_absolute_error": 39.23151634354802,
"mean_squared_error": 2264.0056639954328,
"root_mean_squared_error": 47.58156853231546,
"r2": 0.6254514018701808
}
},
"evaluation": {
"partition": "test",
"metrics": {
"sample_count": 111,
"mean_absolute_error": 43.63288519178736,
"mean_squared_error": 3176.741069492395,
"root_mean_squared_error": 56.36258572397469,
"r2": 0.4255118848266378
}
},
"artifact_files": [
"model/model.joblib",
"predictions/predictions.csv",
"metrics/metrics.json",
"graphs/actual_vs_predicted.png",
"graphs/actual_vs_predicted.svg",
"graphs/residuals.png",
"graphs/residuals.svg",
"graphs/prediction_distribution.png",
"graphs/prediction_distribution.svg",
"result.json"
],
"extras": {
"algorithm": {
"learned": {
"n_features_in": 28,
"n_training_samples": 331,
"dual_coef_shape": [
331
],
"kernel": "rbf",
"alpha": 1.0
},
"warnings": [],
"data": {
"row_count": 442,
"column_count": 31,
"feature_count": 28,
"file_format": "csv"
},
"runtime": {
"captured_at_utc": "2026-11-30T18:21:53.510211+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-11-30T18:22:33.3590679+00:00",
"end_time": "2026-11-30T18:22:34.5796328+00:00",
"elapsed_milliseconds": 1220.55,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "1e22eaec-e956-5859-3840-297e8c029b1b",
"uploaded_blob_id": "5938af4a-3330-6197-83af-a39c481866c4",
"filename": "84dc2039-aa81-8433-6aa1-3918a3e4388a.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 3610,
"upload_status_code": 200
}

Logs​

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

Reproduce the operation​

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