Skip to main content

GaussianNB

Naive Bayes standalone SDK operation. Source: 6.5.ML.NaiveBayes.cs. Read the complete C# integration test and setup.

11 recorded job(s); 11 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 / GaussianNBwhole runcompletedResult recordedrun-0605
LoadBreastCancer-TrainTestSplit-SimpleImputer-QuantileTransformer / GaussianNBwhole runcompletedResult recordedrun-0609
LoadBreastCancer-TrainTestSplit-SimpleImputer-StandardScaler / GaussianNBwhole runcompletedResult recordedrun-0611
LoadBreastCancer-TrainTestSplit-SimpleImputer-normalize / GaussianNBwhole runcompletedResult recordedrun-0613
LoadWine-TrainTestSplit-SimpleImputer-FunctionTransformer / GaussianNBwhole runcompletedResult recordedrun-0615
LoadWine-TrainTestSplit-SimpleImputer-QuantileTransformer / GaussianNBwhole runcompletedResult recordedrun-0619
LoadWine-TrainTestSplit-SimpleImputer-StandardScaler / GaussianNBwhole runcompletedResult recordedrun-0621
LoadWine-TrainTestSplit-SimpleImputer-normalize / GaussianNBwhole runcompletedResult recordedrun-0623
MakeClassification-TrainTestSplit-SimpleImputer-QuantileTransformer / GaussianNBwhole runcompletedResult recordedrun-0627
MakeClassification-TrainTestSplit-SimpleImputer-StandardScaler / GaussianNBwhole runcompletedResult recordedrun-0629
MakeClassification-TrainTestSplit-SimpleImputer-normalize / GaussianNBwhole runcompletedResult recordedrun-0631

Representative execution​

Scenario: LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer / GaussianNB; partition: whole run; observed status: completed. run-0605 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.

"BernoulliNB", "CategoricalNB", "ComplementNB", "GaussianNB", "MultinomialNB"
Algorithms.Where(algorithm => algorithm is "BernoulliNB" or "GaussianNB").ToArray(),
"GaussianNB" => await SendTypedAsync(new GaussianNBJobSendRequestModel
ClassifierType = "GaussianNB",

Request​

{
"input": {
"train_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"test_blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"target_column": "target",
"classifier_type": "GaussianNB",
"classifier_params": {
"var_smoothing": 1e-09
},
"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"
],
"file_format": "csv"
},
"output": {
"artifact_contract_version": "2.0",
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-GaussianNB.zip",
"description": "Naive Bayes integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"naive-bayes",
"LoadBreastCancer",
"FunctionTransformer",
"GaussianNB"
]
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-11-30T19:14:36.7912709+00:00",
"end_time": "2026-11-30T19:14:37.0520948+00:00",
"elapsed_milliseconds": 260.82,
"status": "published",
"job_id": "985f5371-eed9-767e-dece-c261fa812187",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "985f5371-eed9-767e-dece-c261fa812187",
"json": {
"job_id": "985f5371-eed9-767e-dece-c261fa812187",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"train_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"test_blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"train_encryption_key": "[REDACTED]",
"test_encryption_key": "[REDACTED]",
"classifier_type": "GaussianNB",
"classifier_params": {
"var_smoothing": 1e-09
},
"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"
],
"file_format": "csv"
},
"request_timeout_seconds": 300,
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-GaussianNB.zip",
"description": "Naive Bayes integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"naive-bayes",
"LoadBreastCancer",
"FunctionTransformer",
"GaussianNB"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
},
"target_column": "target",
"evaluation": null
},
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-11-30T19:15:37.4654195+00:00",
"end_time": "2026-11-30T19:15:38.9269707+00:00",
"elapsed_milliseconds": 1461.53,
"job_id": "985f5371-eed9-767e-dece-c261fa812187",
"status": "completed",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"schema_version": "2.0",
"job_id": "985f5371-eed9-767e-dece-c261fa812187",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "naive_bayes",
"task_family": "classification",
"algorithm": "GaussianNB"
},
"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": {
"priors": null,
"var_smoothing": 1e-09
},
"metrics": {
"accuracy": 0.9553990610328639,
"f1_weighted": 0.9552496924203201,
"sample_count": 426,
"classes": [
0,
1
],
"confusion_matrix": [
[
147,
12
],
[
7,
260
]
]
}
},
"evaluation": {
"partition": "test",
"metrics": {
"accuracy": 0.9440559440559441,
"f1_weighted": 0.9438254053638668,
"sample_count": 143,
"classes": [
0,
1
],
"confusion_matrix": [
[
48,
5
],
[
3,
87
]
]
}
},
"artifact_files": [
"model/model.joblib",
"predictions/predictions.csv",
"graphs/performance.png",
"graphs/performance.svg",
"graphs/confusion_matrix.png",
"graphs/confusion_matrix.svg",
"graphs/prediction_distribution.png",
"graphs/prediction_distribution.svg",
"metrics/metrics.json",
"result.json"
],
"extras": {
"algorithm": {
"learned": {
"n_features_in": 30,
"classes": [
0,
1
],
"class_count": [
159.0,
267.0
],
"class_log_prior": null,
"feature_log_prob_shape": null,
"theta_shape": [
2,
30
]
},
"warnings": [],
"data": {
"row_count": 569,
"column_count": 33,
"feature_count": 30,
"file_format": "csv",
"probability_classes": [
0,
1
]
},
"runtime": {
"captured_at_utc": "2026-11-30T19:15:13.488365+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-30T19:15:54.0413282+00:00",
"end_time": "2026-11-30T19:15:54.9937691+00:00",
"elapsed_milliseconds": 952.43,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "b6ae864a-b27c-9c18-8ddd-195a06b86675",
"uploaded_blob_id": "cea7fab2-0178-d3b6-9b8d-5eff90cffa85",
"filename": "491f2f58-4f7c-08f5-62e6-098d5fcdc24c.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 4180,
"upload_status_code": 200
}

Logs​

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

Reproduce the operation​

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