ComplementNB with PipelineBinaryClassification
This example pairs the original TypeScript SDK integration test with the recorded responses from its successful ParallelModel pipeline run.
| Property | Recorded value |
|---|---|
| Test ID | 9.5.2.ML.Pipeline.PipelineBinaryClassification.TrainTestSplit.SimpleImputer.NaiveBayes.ComplementNB |
| Algorithm family | Naive Bayes |
| Dataset | PipelineBinaryClassification |
| Acquisition | Uploaded CSV |
| Pipeline mode | DiagnosticTraining |
| Pipeline status | Succeeded |
| Evaluation ready | false |
| Prediction | Recorded (success) |
| Response events | 55 |
This example explicitly enables independent partition fitting for diagnostics. The recorded pipeline succeeded, but EvaluationReady is false; do not interpret its evaluation metrics as production-ready or leakage-safe validation.
Prerequisites
Install the TypeScript SDK and Jest in your Node.js project. The original source is a Jest integration test, not a standalone browser example. It uses the live ParallelModel service and reads the following environment variables from your environment or a local .env file.
PARALLELMODEL_REGION=<region>
PARALLELMODEL_CLIENT_ID=<client-id>
PARALLELMODEL_CLIENT_SECRET=<client-secret>
PARALLELMODEL_MODEL_ID=<model-id>
PARALLELMODEL_ENCRYPTION_KEY_1=<encryption-key>
PARALLELMODEL_COMPUTE_SIZE=<compute-size>
For the upload step, provide pipeline.binary.classification.csv in the test project’s Datasets directory, or use PARALLELMODEL_DATASETS_DIR. The CSV is not included in the supplied archives.
TypeScript example
The following code is preserved from the supplied test file. The response callback records each SDK operation and writes the execution transcript to the outputs directory.
import { test } from '@jest/globals';
import { existsSync } from 'node:fs';
import { mkdir, writeFile } from 'node:fs/promises';
import { dirname, resolve } from 'node:path';
import process from 'node:process';
import { fileURLToPath } from 'node:url';
import { inspect } from 'node:util';
import {
ParallelModelClient,
PipelineExecutionStatus,
PipelineMode,
PipelineSteps,
PipelineDataKind,
PipelinePredictionInputKind,
type TrainTestSplitJobSendRequestModel,
type SimpleImputerJobSendRequestModel,
type ComplementNBJobSendRequestModel
} from '@parallelmodel/sdk';
const projectDirectory = fileURLToPath(new URL('../', import.meta.url));
const logFile = resolve(projectDirectory, 'outputs', '9.5.2.ML.Pipeline.PipelineBinaryClassification.TrainTestSplit.SimpleImputer.NaiveBayes.ComplementNB.text');
function required(name: string): string {
const value = process.env[name];
if (!value?.trim()) throw new Error(`Missing environment variable ${name}`);
return value;
}
test('9.5.2.ML.Pipeline.PipelineBinaryClassification.TrainTestSplit.SimpleImputer.NaiveBayes.ComplementNB', async () => {
const lines: string[] = [];
const secrets: string[] = [];
function writeLine(message: string): void {
const safe = secrets.reduce((line, secret) => line.replaceAll(secret, '[redacted]'), message);
lines.push(safe);
console.log(safe);
}
try {
const envFile = [resolve(projectDirectory, '.env'), resolve(projectDirectory, '..', '.env')]
.find(path => existsSync(path));
if (envFile) process.loadEnvFile(envFile);
const modelId = required('PARALLELMODEL_MODEL_ID');
const computeSize = required('PARALLELMODEL_COMPUTE_SIZE');
const encryptionKey = required('PARALLELMODEL_ENCRYPTION_KEY_1');
const clientSecret = required('PARALLELMODEL_CLIENT_SECRET');
secrets.push(encryptionKey, clientSecret);
const parallelModelClient = new ParallelModelClient({
region: required('PARALLELMODEL_REGION'),
clientId: required('PARALLELMODEL_CLIENT_ID'),
clientSecret, timeout: 300_000, autoRefreshToken: true,
refreshBeforeExpiry: 120_000, retryOnUnauthorized: true, maxRetries: 3
});
const datasetFileName = 'pipeline.binary.classification.csv';
const datasetFilePath = [resolve(projectDirectory, 'Datasets', datasetFileName),
resolve(projectDirectory, '..', 'Datasets', datasetFileName),
...(process.env.PARALLELMODEL_DATASETS_DIR ? [resolve(process.env.PARALLELMODEL_DATASETS_DIR, datasetFileName)] : [])
].find(path => existsSync(path));
if (!datasetFilePath) throw new Error(`Dataset not found: Datasets/${datasetFileName}`);
const parallelModelPipeline = parallelModelClient.pipelineClient.create(modelId, {
mode: PipelineMode.DiagnosticTraining,
allowIndependentPartitionFitForDiagnostics: true,
computeSize,
defaultOutputKeyReference: 'key',
resolveEncryptionKey: () => encryptionKey,
apiTimeout: 300_000,
pollingInterval: 30_000
}).configure(
PipelineSteps.datasetUpload(datasetFilePath, "target", undefined, PipelineDataKind.Numeric),
PipelineSteps.modelSelection((dataset, outputName): TrainTestSplitJobSendRequestModel => ({
input: {
input_blob_id: dataset.blobId,
feature_columns: [...dataset.featureColumns],
target_column: dataset.targetColumn!,
file_format: dataset.fileFormat,
algorithm_type: "train_test_split",
algorithm_params: {
test_size: 0.2,
random_state: 42,
shuffle: true,
stratify: true
},
evaluation: {
test_size: 0.2,
random_state: 42,
shuffle: true,
stratify: true
},
generate_graphs: false
},
output: { name: outputName, tags: ["pipeline", "model-selection"] },
request_timeout_seconds: 300
})),
PipelineSteps.impute((partition, outputName): SimpleImputerJobSendRequestModel => ({
input: {
input_blob_id: partition.blobId,
classifier_type: "SimpleImputer",
classifier_params: {
strategy: "mean",
add_indicator: false,
keep_empty_features: true
},
data_type: "numeric",
feature_columns: [...partition.featureColumns],
file_format: partition.fileFormat,
missing_tokens: ["", "NA", "NaN", "nan", "null", "?"],
target_column: partition.targetColumn!,
keep_other_columns: true,
evaluation: {
test_size: 0.2,
random_state: 42,
shuffle: true
},
generate_graphs: false
},
output: { name: outputName, tags: ["pipeline", "impute"] },
request_timeout_seconds: 300
})),
PipelineSteps.naiveBayes((partitions, outputName): ComplementNBJobSendRequestModel => ({
input: {
train_blob_id: partitions.train.blobId,
test_blob_id: partitions.test.blobId,
classifier_type: "ComplementNB",
classifier_params: {
alpha: 1.0,
norm: false
},
feature_columns: [...partitions.train.featureColumns],
file_format: partitions.train.fileFormat,
target_column: partitions.train.targetColumn!
},
output: { name: outputName, tags: ["pipeline", "naivebayes"] },
request_timeout_seconds: 300
})),
PipelineSteps.predict("Auto", [1, 1, 1, 1, 1, 1, 1, 1], PipelinePredictionInputKind.Transformed)
);
const pipelineRunResult = await parallelModelPipeline.runAsync({
onResponse(event) {
writeLine(`${event.module}/${event.algorithm} | ${event.partition} | ${event.operation}`);
writeLine(JSON.stringify(event.response) ?? 'undefined');
}
}, AbortSignal.timeout(119 * 60_000));
writeLine(`Pipeline status: ${pipelineRunResult.status}; EvaluationReady: ${pipelineRunResult.evaluationReady}`);
if (pipelineRunResult.status !== PipelineExecutionStatus.Succeeded) {
const message = pipelineRunResult.status === PipelineExecutionStatus.Cancelled
? 'Pipeline cancelled.' : 'Pipeline failed.';
throw new Error(message, { cause: pipelineRunResult.failure?.exception });
}
} catch (error) {
writeLine(inspect(error));
throw error;
} finally {
await mkdir(dirname(logFile), { recursive: true });
await writeFile(logFile, lines.join('\n') + '\n', 'utf8');
}
}, 120 * 60_000);
Recorded responses
The responses below follow the actual SDK callback order. Each step identifies the operation and partition from the source transcript. Identifiers and infrastructure names have been anonymised consistently; session cookies and keys are redacted. Result values, statuses, and timings are retained.
Download the complete execution trace (JSON)The downloadable trace includes every response event, including complete worker log arrays. The inline log previews show the first and last entries only.
Pipeline stages
| Stage | Partition | Response events |
|---|---|---|
Dataset/Upload | Dataset | 3 |
ModelSelection/TrainTestSplit | Dataset | 11 |
Impute/SimpleImputer | Train | 13 |
Impute/SimpleImputer | Test | 12 |
NaiveBayes/ComplementNB | Both | 15 |
Predict/Auto | Both | 1 |
1. Dataset / Upload with Dataset
SDK step: PipelineSteps.datasetUpload(...).
Upload
{
"statusCode": 200,
"data": {
"id": "06387a2a-7779-487e-af6c-e8131c6dc16d",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"application_id": "2d62b1579c84446da6c07e864e66eb6a",
"name": "pipeline.binary.classification.csv",
"description": "",
"blob_name": "3b43bdbaaae1462aadb67e4f5516b5d2/b2d72ccc7fe843aa8b2c2866cdeabf6e.csv",
"container_name": "models",
"storage_account_name": "storage-0002",
"blob_version_id": "2026-12-05T19:52:10.3591019Z",
"file_size_bytes": 4648,
"record_status": "Available",
"record_type": "Generic",
"extension_type": "Csv",
"access_tier": "Hot",
"is_encrypted": true,
"encryption_algorithm_name": "CustomerProvidedAes256",
"created_by": "2d62b1579c84446da6c07e864e66eb6a",
"created_at": "2026-12-05T19:52:10.373467+00:00",
"modified_by": "2d62b1579c84446da6c07e864e66eb6a",
"modified_at": "2026-12-05T19:52:10.373467+00:00",
"is_deleted": false,
"deleted_by": "",
"deleted_at": null,
"last_access_by": "2d62b1579c84446da6c07e864e66eb6a",
"last_access_at": "2026-12-05T19:52:10.373467+00:00",
"tags": [
"datasets",
"pipeline"
]
},
"text": "{\"id\":\"06387a2a-7779-487e-af6c-e8131c6dc16d\",\"model_id\":\"3b43bdba-aae1-462a-adb6-7e4f5516b5d2\",\"application_id\":\"2d62b1579c84446da6c07e864e66eb6a\",\"name\":\"pipeline.binary.classification.csv\",\"description\":\"\",\"blob_name\":\"3b43bdbaaae1462aadb67e4f5516b5d2/b2d72ccc7fe843aa8b2c2866cdeabf6e.csv\",\"container_name\":\"models\",\"storage_account_name\":\"storage-0002\",\"blob_version_id\":\"2026-12-05T19:52:10.3591019Z\",\"file_size_bytes\":4648,\"record_status\":\"Available\",\"record_type\":\"Generic\",\"extension_type\":\"Csv\",\"access_tier\":\"Hot\",\"is_encrypted\":true,\"encryption_algorithm_name\":\"CustomerProvidedAes256\",\"created_by\":\"2d62b1579c84446da6c07e864e66eb6a\",\"created_at\":\"2026-12-05T19:52:10.373467+00:00\",\"modified_by\":\"2d62b1579c84446da6c07e864e66eb6a\",\"modified_at\":\"2026-12-05T19:52:10.373467+00:00\",\"is_deleted\":false,\"deleted_by\":\"\",\"deleted_at\":null,\"last_access_by\":\"2d62b1579c84446da6c07e864e66eb6a\",\"last_access_at\":\"2026-12-05T19:52:10.373467+00:00\",\"tags\":[\"datasets\",\"pipeline\"]}",
"headers": {
"api-supported-versions": "1.0",
"cache-control": "private",
"content-encoding": "gzip",
"content-type": "application/json; charset=utf-8",
"date": "Sat, 05 Dec 2026 19:52:09 GMT",
"set-cookie": "[redacted]",
"transfer-encoding": "chunked",
"vary": "Accept-Encoding",
"x-powered-by": "ASP.NET"
},
"ok": true
}
Download
{
"blobId": "06387a2a-7779-487e-af6c-e8131c6dc16d",
"fileName": "pipeline.binary.classification.csv",
"fileSizeBytes": 4648
}
Inspect
{
"fileName": "pipeline.binary.classification.csv",
"fileExtension": ".csv",
"fileFormat": "csv",
"dataKind": "Numeric",
"columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8",
"target"
],
"featureColumns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"targetColumn": "target",
"columnDataTypes": {
"feature_1": "numeric",
"feature_2": "numeric",
"feature_3": "numeric",
"feature_4": "numeric",
"feature_5": "numeric",
"feature_6": "numeric",
"feature_7": "numeric",
"feature_8": "numeric",
"target": "numeric"
},
"rowCount": 240,
"columnCount": 9,
"fileSizeBytes": 4648
}
2. ModelSelection / TrainTestSplit with Dataset
SDK step: PipelineSteps.modelSelection(...).
Send
{
"start_time": "2026-12-05T19:52:22.1088154+00:00",
"end_time": "2026-12-05T19:52:22.1975545+00:00",
"elapsed_milliseconds": 88.74,
"status": "published",
"job_id": "2e36d84f-9c3d-4008-9e37-110bd1117111",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "2e36d84f-9c3d-4008-9e37-110bd1117111",
"json": {
"job_id": "2e36d84f-9c3d-4008-9e37-110bd1117111",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"input_blob_id": "06387a2a-7779-487e-af6c-e8131c6dc16d",
"input_encryption_key": "[redacted]",
"feature_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"file_format": "csv",
"algorithm_type": "train_test_split",
"algorithm_params": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true,
"stratify": true
}
},
"request_timeout_seconds": 300,
"output": {
"name": "pipeline-336deee07ce5411081b82bb8b1d09d1d-02-ModelSelection-Dataset.zip",
"description": null,
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"pipeline",
"model-selection"
],
"encryption_key": "[redacted]"
},
"target_column": "target",
"evaluation": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true,
"stratify": true
},
"generate_graphs": false
},
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi"
}
}
Status (2 responses)
[
{
"start_time": "2026-12-05T19:52:22.2334508+00:00",
"end_time": "2026-12-05T19:52:22.3188748+00:00",
"elapsed_milliseconds": 85.42,
"job_id": "2e36d84f-9c3d-4008-9e37-110bd1117111",
"status": "processing",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:52:52.4421757+00:00",
"end_time": "2026-12-05T19:52:52.8344358+00:00",
"elapsed_milliseconds": 392.26,
"job_id": "2e36d84f-9c3d-4008-9e37-110bd1117111",
"status": "completed",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi"
}
]
Logs with 34 entries (preview)
Showing 2 of 34 entries. The complete log response is available in the execution trace above.
[
{
"start_time": "0001-01-01T00:00:00+00:00",
"end_time": "0001-01-01T00:00:00+00:00",
"elapsed_milliseconds": 0,
"timestamp": "2026-12-05T19:52:49.6026563+00:00",
"log": {
"status": "stage_started",
"stage": "checking delivery count",
"jobId": null
}
},
{
"start_time": "0001-01-01T00:00:00+00:00",
"end_time": "0001-01-01T00:00:00+00:00",
"elapsed_milliseconds": 0,
"timestamp": "2026-12-05T19:52:50.2729172+00:00",
"log": {
"status": "stage_completed",
"stage": "completing message",
"jobId": "2e36d84f-9c3d-4008-9e37-110bd1117111",
"elapsed_seconds": 0
}
}
]
Result
{
"jobId": "2e36d84f-9c3d-4008-9e37-110bd1117111",
"execution": {
"executionName": "spmrgmlcae3caj4-pgtqs",
"jobName": "spmrgmlcae3caj4",
"container": {
"hostname": "worker-0361",
"replicaName": "worker-0361",
"processId": 1
}
},
"algorithm_type": "train_test_split",
"stats": {
"row_count": 240,
"column_count": 9,
"feature_count": 8,
"training_row_count": 192,
"test_row_count": 48,
"feature_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"target_columns": [
"target"
],
"file_format": "csv",
"task_type": "split",
"metrics": {
"artifact_count": 4
}
},
"effective_params": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true,
"stratify": true
},
"learned": {
"fold_count": 1,
"fold_sizes": [
{
"train": 192,
"test": 48
}
]
},
"warnings": [],
"runtime": {
"captured_at_utc": "2026-12-05T19:52:50.128729+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",
"train.csv",
"test.csv",
"train_indices.csv",
"test_indices.csv"
]
}
Extract (6 responses)
[
{
"start_time": "2026-12-05T19:55:01.5349273+00:00",
"end_time": "2026-12-05T19:55:03.5969132+00:00",
"elapsed_milliseconds": 2061.96,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "bdf7ce94-92f5-4d66-80c6-c5d373976a9c",
"uploaded_blob_id": "38163c4f-1988-4f94-86a7-ebe57b03256c",
"filename": "2d48c210-dc8b-45fd-af5f-f511c1780e41.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 1114,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:55:03.6524518+00:00",
"end_time": "2026-12-05T19:55:05.4088722+00:00",
"elapsed_milliseconds": 1756.4,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "bdf7ce94-92f5-4d66-80c6-c5d373976a9c",
"uploaded_blob_id": "6fff7b5e-a861-477a-8e51-6cdc7109b4fb",
"filename": "e22d76b8-b966-43b8-901b-0d5a70677f99.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 1889,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:55:05.4542225+00:00",
"end_time": "2026-12-05T19:55:07.0548611+00:00",
"elapsed_milliseconds": 1600.62,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "bdf7ce94-92f5-4d66-80c6-c5d373976a9c",
"uploaded_blob_id": "b7477eab-f209-4c0a-9664-36069ededc61",
"filename": "8bc495be-60da-46ec-8945-5a369ce6085e.csv",
"source_path": "train.csv",
"source_format": "csv",
"size_bytes": 3543,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:55:07.1095727+00:00",
"end_time": "2026-12-05T19:55:08.6655291+00:00",
"elapsed_milliseconds": 1555.94,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "bdf7ce94-92f5-4d66-80c6-c5d373976a9c",
"uploaded_blob_id": "d1dcc146-c951-4c32-ad62-2473148bdb4a",
"filename": "068f53ac-6558-4b43-9e01-0278b9a2c52a.csv",
"source_path": "test.csv",
"source_format": "csv",
"size_bytes": 951,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:55:08.7101252+00:00",
"end_time": "2026-12-05T19:55:10.2570588+00:00",
"elapsed_milliseconds": 1546.91,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "bdf7ce94-92f5-4d66-80c6-c5d373976a9c",
"uploaded_blob_id": "a1d92d24-528f-4218-831d-ac1015cc0514",
"filename": "92f5db92-74e2-4305-959b-82c75acb7695.csv",
"source_path": "train_indices.csv",
"source_format": "csv",
"size_bytes": 690,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:55:10.293641+00:00",
"end_time": "2026-12-05T19:55:11.8331812+00:00",
"elapsed_milliseconds": 1539.51,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "bdf7ce94-92f5-4d66-80c6-c5d373976a9c",
"uploaded_blob_id": "81bd4410-ce27-450a-b6d8-b26a273ef78c",
"filename": "30ea9e90-64b6-43e9-b65e-30233fe8cbe1.csv",
"source_path": "test_indices.csv",
"source_format": "csv",
"size_bytes": 180,
"upload_status_code": 200
}
]
3. Impute / SimpleImputer with Train
SDK step: PipelineSteps.impute(...).
Send
{
"start_time": "2026-12-05T19:55:11.9520473+00:00",
"end_time": "2026-12-05T19:55:12.0384977+00:00",
"elapsed_milliseconds": 86.45,
"status": "published",
"job_id": "a88b2bfd-3f57-4eef-a4b6-975d9325fb97",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "a88b2bfd-3f57-4eef-a4b6-975d9325fb97",
"json": {
"job_id": "a88b2bfd-3f57-4eef-a4b6-975d9325fb97",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"input_blob_id": "b7477eab-f209-4c0a-9664-36069ededc61",
"input_encryption_key": "[redacted]",
"classifier_type": "SimpleImputer",
"classifier_params": {
"strategy": "mean",
"add_indicator": false,
"keep_empty_features": true
},
"data_type": "numeric",
"feature_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"target_column": "target",
"keep_other_columns": true,
"file_format": "csv",
"missing_tokens": [
"",
"NA",
"NaN",
"nan",
"null",
"?"
]
},
"request_timeout_seconds": 300,
"output": {
"name": "pipeline-336deee07ce5411081b82bb8b1d09d1d-03-Impute-Train.zip",
"description": null,
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"pipeline",
"impute"
],
"encryption_key": "[redacted]"
},
"evaluation": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true
},
"generate_graphs": false
},
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
}
}
Status (3 responses)
[
{
"start_time": "2026-12-05T19:55:12.0747632+00:00",
"end_time": "2026-12-05T19:55:12.1646792+00:00",
"elapsed_milliseconds": 89.91,
"job_id": "a88b2bfd-3f57-4eef-a4b6-975d9325fb97",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:55:42.2634715+00:00",
"end_time": "2026-12-05T19:55:42.3693192+00:00",
"elapsed_milliseconds": 105.85,
"job_id": "a88b2bfd-3f57-4eef-a4b6-975d9325fb97",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:56:12.4507515+00:00",
"end_time": "2026-12-05T19:56:12.8753461+00:00",
"elapsed_milliseconds": 424.59,
"job_id": "a88b2bfd-3f57-4eef-a4b6-975d9325fb97",
"status": "completed",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
}
]
Logs with 40 entries (preview)
Showing 2 of 40 entries. The complete log response is available in the execution trace above.
[
{
"start_time": "0001-01-01T00:00:00+00:00",
"end_time": "0001-01-01T00:00:00+00:00",
"elapsed_milliseconds": 0,
"timestamp": "2026-12-05T19:55:44.1357889+00:00",
"log": {
"status": "stage_started",
"stage": "checking delivery count",
"jobId": null
}
},
{
"start_time": "0001-01-01T00:00:00+00:00",
"end_time": "0001-01-01T00:00:00+00:00",
"elapsed_milliseconds": 0,
"timestamp": "2026-12-05T19:55:44.6667683+00:00",
"log": {
"status": "stage_completed",
"stage": "completing message",
"jobId": "a88b2bfd-3f57-4eef-a4b6-975d9325fb97",
"elapsed_seconds": 0
}
}
]
Result
{
"job_id": "a88b2bfd-3f57-4eef-a4b6-975d9325fb97",
"execution": {
"execution_name": "spmrgmlcae2caj6-cngdn",
"job_name": "spmrgmlcae2caj6",
"container": {
"hostname": "worker-0362",
"replica_name": "worker-0362",
"process_id": 1
}
},
"classifier_type": "SimpleImputer",
"stats": {
"row_count": 192,
"column_count": 9,
"feature_count": 8,
"training_row_count": 153,
"test_row_count": 39,
"feature_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"target_columns": [],
"file_format": "csv",
"task_type": "tabular_imputation",
"metrics": {
"input_missing_cells": 0,
"input_missing_by_feature": {
"feature_1": 0,
"feature_2": 0,
"feature_3": 0,
"feature_4": 0,
"feature_5": 0,
"feature_6": 0,
"feature_7": 0,
"feature_8": 0
},
"input_missing_rate": 0,
"output_columns": 8,
"fit_scope": "training",
"training_missing_cells": 0,
"holdout_missing_cells": 0,
"output_missing_cells": 0,
"output_is_missing_indicators": false
}
},
"effective_params": {
"imputer": {
"strategy": "mean",
"fill_value": null,
"add_indicator": false,
"keep_empty_features": true
},
"data_type": "numeric"
},
"learned": {
"input_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"output_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"target_column": "target",
"target_preserved": true,
"keep_other_columns": true,
"preserved_columns": [
"target"
],
"transformed_values_file": "imputed.csv",
"compatibility_predictions_file": "predictions.csv",
"input_missing_mask_file": "missingness.csv",
"reusable_fitted_imputer": "model.joblib"
},
"warnings": [],
"runtime": {
"captured_at_utc": "2026-12-05T19:55:44.537004+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": "text-imputation-output.zip",
"artifact_files": [
"model.joblib",
"predictions.csv",
"imputed.csv",
"missingness.csv",
"feature_names.csv",
"row_partitions.csv",
"result.json"
]
}
Extract (7 responses)
[
{
"start_time": "2026-12-05T19:56:45.5405878+00:00",
"end_time": "2026-12-05T19:56:46.3080152+00:00",
"elapsed_milliseconds": 767.42,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6f9ffe5f-3836-4b6d-b69a-e38b33b4a38d",
"uploaded_blob_id": "eeb5fd95-1cc7-4b3d-8498-2ecd6caeed6e",
"filename": "4706564d-e4f1-4fa2-9b12-fd4eb2422307.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 844,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:56:46.351486+00:00",
"end_time": "2026-12-05T19:56:47.1289727+00:00",
"elapsed_milliseconds": 777.47,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6f9ffe5f-3836-4b6d-b69a-e38b33b4a38d",
"uploaded_blob_id": "8ec86e1f-680f-4219-b13c-2387b862c0ca",
"filename": "46c539b3-5ab3-4a3f-8d5e-475117159aeb.csv",
"source_path": "predictions.csv",
"source_format": "csv",
"size_bytes": 9175,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:56:47.8693207+00:00",
"end_time": "2026-12-05T19:56:48.6278711+00:00",
"elapsed_milliseconds": 758.54,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6f9ffe5f-3836-4b6d-b69a-e38b33b4a38d",
"uploaded_blob_id": "a504f5d2-c8c4-4a9d-ae24-23ac7d9595fd",
"filename": "d1a87695-5167-484a-b447-4c15380902cc.csv",
"source_path": "imputed.csv",
"source_format": "csv",
"size_bytes": 9175,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:56:48.6755666+00:00",
"end_time": "2026-12-05T19:56:49.457336+00:00",
"elapsed_milliseconds": 781.76,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6f9ffe5f-3836-4b6d-b69a-e38b33b4a38d",
"uploaded_blob_id": "ed596545-c98f-4906-bb6e-74316a197b93",
"filename": "f70035ba-f1bb-4369-8739-9f073d7872ac.csv",
"source_path": "missingness.csv",
"source_format": "csv",
"size_bytes": 4077,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:56:49.5101945+00:00",
"end_time": "2026-12-05T19:56:50.6602096+00:00",
"elapsed_milliseconds": 1150,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6f9ffe5f-3836-4b6d-b69a-e38b33b4a38d",
"uploaded_blob_id": "7f758bee-ffec-459d-906d-abc982f7aab2",
"filename": "2038eb85-95a0-487c-aaed-a9262e5b8a99.csv",
"source_path": "feature_names.csv",
"source_format": "csv",
"size_bytes": 345,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:56:50.6964095+00:00",
"end_time": "2026-12-05T19:56:51.4894324+00:00",
"elapsed_milliseconds": 793.01,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6f9ffe5f-3836-4b6d-b69a-e38b33b4a38d",
"uploaded_blob_id": "d6602e76-52af-4311-a2bd-63247a9e4891",
"filename": "f1d57c83-9f23-468d-831a-be5655d05936.csv",
"source_path": "row_partitions.csv",
"source_format": "csv",
"size_bytes": 2560,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:56:52.0811557+00:00",
"end_time": "2026-12-05T19:56:52.8347997+00:00",
"elapsed_milliseconds": 753.63,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6f9ffe5f-3836-4b6d-b69a-e38b33b4a38d",
"uploaded_blob_id": "2fdb3da4-7312-4da8-9088-59548c0683c5",
"filename": "e94b3c18-c753-4820-83f9-4a412b0b456e.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 3077,
"upload_status_code": 200
}
]
4. Impute / SimpleImputer with Test
SDK step: PipelineSteps.impute(...).
Send
{
"start_time": "2026-12-05T19:56:52.9178675+00:00",
"end_time": "2026-12-05T19:56:52.9856542+00:00",
"elapsed_milliseconds": 67.79,
"status": "published",
"job_id": "f99c65ac-0204-4ebe-b4e9-21de136aa812",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "f99c65ac-0204-4ebe-b4e9-21de136aa812",
"json": {
"job_id": "f99c65ac-0204-4ebe-b4e9-21de136aa812",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"input_blob_id": "d1dcc146-c951-4c32-ad62-2473148bdb4a",
"input_encryption_key": "[redacted]",
"classifier_type": "SimpleImputer",
"classifier_params": {
"strategy": "mean",
"add_indicator": false,
"keep_empty_features": true
},
"data_type": "numeric",
"feature_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"target_column": "target",
"keep_other_columns": true,
"file_format": "csv",
"missing_tokens": [
"",
"NA",
"NaN",
"nan",
"null",
"?"
]
},
"request_timeout_seconds": 300,
"output": {
"name": "pipeline-336deee07ce5411081b82bb8b1d09d1d-03-Impute-Test.zip",
"description": null,
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"pipeline",
"impute"
],
"encryption_key": "[redacted]"
},
"evaluation": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true
},
"generate_graphs": false
},
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
}
}
Status (2 responses)
[
{
"start_time": "2026-12-05T19:56:53.0416096+00:00",
"end_time": "2026-12-05T19:56:53.1198301+00:00",
"elapsed_milliseconds": 78.22,
"job_id": "f99c65ac-0204-4ebe-b4e9-21de136aa812",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:57:23.6825467+00:00",
"end_time": "2026-12-05T19:57:24.1861512+00:00",
"elapsed_milliseconds": 503.6,
"job_id": "f99c65ac-0204-4ebe-b4e9-21de136aa812",
"status": "completed",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
}
]
Logs with 40 entries (preview)
Showing 2 of 40 entries. The complete log response is available in the execution trace above.
[
{
"start_time": "0001-01-01T00:00:00+00:00",
"end_time": "0001-01-01T00:00:00+00:00",
"elapsed_milliseconds": 0,
"timestamp": "2026-12-05T19:57:19.7553407+00:00",
"log": {
"status": "stage_started",
"stage": "checking delivery count",
"jobId": null
}
},
{
"start_time": "0001-01-01T00:00:00+00:00",
"end_time": "0001-01-01T00:00:00+00:00",
"elapsed_milliseconds": 0,
"timestamp": "2026-12-05T19:57:20.3301753+00:00",
"log": {
"status": "stage_completed",
"stage": "completing message",
"jobId": "f99c65ac-0204-4ebe-b4e9-21de136aa812",
"elapsed_seconds": 0
}
}
]
Result
{
"job_id": "f99c65ac-0204-4ebe-b4e9-21de136aa812",
"execution": {
"execution_name": "spmrgmlcae2caj6-n8b4q",
"job_name": "spmrgmlcae2caj6",
"container": {
"hostname": "worker-0363",
"replica_name": "worker-0363",
"process_id": 1
}
},
"classifier_type": "SimpleImputer",
"stats": {
"row_count": 48,
"column_count": 9,
"feature_count": 8,
"training_row_count": 38,
"test_row_count": 10,
"feature_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"target_columns": [],
"file_format": "csv",
"task_type": "tabular_imputation",
"metrics": {
"input_missing_cells": 0,
"input_missing_by_feature": {
"feature_1": 0,
"feature_2": 0,
"feature_3": 0,
"feature_4": 0,
"feature_5": 0,
"feature_6": 0,
"feature_7": 0,
"feature_8": 0
},
"input_missing_rate": 0,
"output_columns": 8,
"fit_scope": "training",
"training_missing_cells": 0,
"holdout_missing_cells": 0,
"output_missing_cells": 0,
"output_is_missing_indicators": false
}
},
"effective_params": {
"imputer": {
"strategy": "mean",
"fill_value": null,
"add_indicator": false,
"keep_empty_features": true
},
"data_type": "numeric"
},
"learned": {
"input_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"output_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"target_column": "target",
"target_preserved": true,
"keep_other_columns": true,
"preserved_columns": [
"target"
],
"transformed_values_file": "imputed.csv",
"compatibility_predictions_file": "predictions.csv",
"input_missing_mask_file": "missingness.csv",
"reusable_fitted_imputer": "model.joblib"
},
"warnings": [],
"runtime": {
"captured_at_utc": "2026-12-05T19:57:20.186572+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": "text-imputation-output.zip",
"artifact_files": [
"model.joblib",
"predictions.csv",
"imputed.csv",
"missingness.csv",
"feature_names.csv",
"row_partitions.csv",
"result.json"
]
}
Extract (7 responses)
[
{
"start_time": "2026-12-05T19:57:26.074619+00:00",
"end_time": "2026-12-05T19:57:27.1323135+00:00",
"elapsed_milliseconds": 1057.68,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "dbad581d-1996-4590-8a50-980fd1975e81",
"uploaded_blob_id": "0f6d8bb2-84f2-41ef-b6fa-6c38efc802a8",
"filename": "bf0c4c8d-08a7-4bd7-8231-5389e7824118.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 839,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:27.257998+00:00",
"end_time": "2026-12-05T19:57:29.0475863+00:00",
"elapsed_milliseconds": 1789.57,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "dbad581d-1996-4590-8a50-980fd1975e81",
"uploaded_blob_id": "e004d11f-88c6-4ed4-9f6e-990b2dc544ea",
"filename": "c3af2cda-4f48-4b96-bd4d-a1b623b17639.csv",
"source_path": "predictions.csv",
"source_format": "csv",
"size_bytes": 2344,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:29.122468+00:00",
"end_time": "2026-12-05T19:57:29.9684277+00:00",
"elapsed_milliseconds": 845.95,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "dbad581d-1996-4590-8a50-980fd1975e81",
"uploaded_blob_id": "98803745-e4b6-41aa-b945-8562ef295292",
"filename": "00f66d3d-071e-4c35-9a57-3069e1ef44bd.csv",
"source_path": "imputed.csv",
"source_format": "csv",
"size_bytes": 2344,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:30.0140803+00:00",
"end_time": "2026-12-05T19:57:31.2550333+00:00",
"elapsed_milliseconds": 1240.94,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "dbad581d-1996-4590-8a50-980fd1975e81",
"uploaded_blob_id": "00c87c2a-96c7-4f53-a089-a8b9cce7874d",
"filename": "25db4c6a-f41f-413c-a503-cc1cc868e2ba.csv",
"source_path": "missingness.csv",
"source_format": "csv",
"size_bytes": 1105,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:31.3167294+00:00",
"end_time": "2026-12-05T19:57:32.1306965+00:00",
"elapsed_milliseconds": 813.96,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "dbad581d-1996-4590-8a50-980fd1975e81",
"uploaded_blob_id": "0eec6f8a-5f54-4eaa-ab54-48618fe3741a",
"filename": "d690e031-c2df-42bf-ab26-75425926fc61.csv",
"source_path": "feature_names.csv",
"source_format": "csv",
"size_bytes": 345,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:32.1758103+00:00",
"end_time": "2026-12-05T19:57:32.9567394+00:00",
"elapsed_milliseconds": 780.92,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "dbad581d-1996-4590-8a50-980fd1975e81",
"uploaded_blob_id": "e4cb15fd-bc24-417a-9ba4-c311386c265c",
"filename": "aa45ede3-c9b2-4699-9a4e-6fd603d404e4.csv",
"source_path": "row_partitions.csv",
"source_format": "csv",
"size_bytes": 625,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:33.0237256+00:00",
"end_time": "2026-12-05T19:57:34.0277428+00:00",
"elapsed_milliseconds": 1004,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "dbad581d-1996-4590-8a50-980fd1975e81",
"uploaded_blob_id": "8542ebb4-9127-489c-87bc-9cdf13bdb7a1",
"filename": "bd113ad8-91ed-425e-9cdf-c065dd2cd290.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 3075,
"upload_status_code": 200
}
]
5. NaiveBayes / ComplementNB with Both
SDK step: PipelineSteps.naiveBayes(...).
Send
{
"start_time": "2026-12-05T19:57:34.1033878+00:00",
"end_time": "2026-12-05T19:57:34.1862108+00:00",
"elapsed_milliseconds": 82.82,
"status": "published",
"job_id": "1ea7974b-0cf9-436c-a283-ac97f1e21e9f",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "1ea7974b-0cf9-436c-a283-ac97f1e21e9f",
"json": {
"job_id": "1ea7974b-0cf9-436c-a283-ac97f1e21e9f",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"train_blob_id": "a504f5d2-c8c4-4a9d-ae24-23ac7d9595fd",
"test_blob_id": "98803745-e4b6-41aa-b945-8562ef295292",
"train_encryption_key": "[redacted]",
"test_encryption_key": "[redacted]",
"classifier_type": "ComplementNB",
"classifier_params": {
"alpha": 1,
"norm": false
},
"feature_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"file_format": "csv"
},
"request_timeout_seconds": 300,
"output": {
"name": "pipeline-336deee07ce5411081b82bb8b1d09d1d-04-NaiveBayes-Both.zip",
"description": null,
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"pipeline",
"naivebayes"
],
"encryption_key": "[redacted]",
"artifact_contract_version": "2.0"
},
"target_column": "target",
"evaluation": null
},
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi"
}
}
Status (2 responses)
[
{
"start_time": "2026-12-05T19:57:34.2559253+00:00",
"end_time": "2026-12-05T19:57:37.7253107+00:00",
"elapsed_milliseconds": 3469.34,
"job_id": "1ea7974b-0cf9-436c-a283-ac97f1e21e9f",
"status": "processing",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:58:07.9156471+00:00",
"end_time": "2026-12-05T19:58:08.3200372+00:00",
"elapsed_milliseconds": 404.39,
"job_id": "1ea7974b-0cf9-436c-a283-ac97f1e21e9f",
"status": "completed",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi"
}
]
Logs with 56 entries (preview)
Showing 2 of 56 entries. The complete log response is available in the execution trace above.
[
{
"start_time": "0001-01-01T00:00:00+00:00",
"end_time": "0001-01-01T00:00:00+00:00",
"elapsed_milliseconds": 0,
"timestamp": "2026-12-05T19:57:59.3408773+00:00",
"log": "{\"status\":\"stage_started\",\"stage\":\"checking delivery count\",\"jobId\":null}"
},
{
"start_time": "0001-01-01T00:00:00+00:00",
"end_time": "0001-01-01T00:00:00+00:00",
"elapsed_milliseconds": 0,
"timestamp": "2026-12-05T19:58:00.7245247+00:00",
"log": "\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.43408523295622753,0.5659147670437723]},{\"row_index\":237,\"prediction\":0,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.5290478752017214,0.47095212479827875]},{\"row_index\":238,\"prediction\":0,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.5550898101538841,0.4449101898461163]},{\"row_index\":239,\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.4530526145154623,0.5469473854845385]}],\"warnings\":[],\"runtime\":{\"captured_at_utc\":\"2026-12-05T19:57:59.802504+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\":\"classifier-output.zip\",\"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\"],\"classifier_type\":\"ComplementNB\"},\"elapsed_seconds\":1.371,\"upload_status_code\":200,\"upload_response\":{\"id\":\"7ad37105-b9a0-426c-8136-8f7542ad7f45\",\"model_id\":\"3b43bdba-aae1-462a-adb6-7e4f5516b5d2\",\"application_id\":\"spmrgmlcae2caj2\",\"name\":\"pipeline-336deee07ce5411081b82bb8b1d09d1d-04-NaiveBayes-Both.zip\",\"description\":\"Naive Bayes ComplementNB artifacts, contract v2.0.\",\"blob_name\":\"3b43bdbaaae1462aadb67e4f5516b5d2/3893f1ce62b7426487fd09bb8b82b420.zip\",\"container_name\":\"models\",\"storage_account_name\":\"storage-0002\",\"blob_version_id\":\"2026-12-05T19:58:00.6543377Z\",\"file_size_bytes\":96760,\"record_status\":\"Available\",\"record_type\":\"Generic\",\"extension_type\":\"Unknown\",\"access_tier\":\"Hot\",\"is_encrypted\":true,\"encryption_algorithm_name\":\"CustomerProvidedAes256\",\"created_by\":\"spmrgmlcae2caj2\",\"created_at\":\"2026-12-05T19:58:00.6661944+00:00\",\"modified_by\":\"spmrgmlcae2caj2\",\"modified_at\":\"2026-12-05T19:58:00.6661944+00:00\",\"is_deleted\":false,\"deleted_by\":\"\",\"deleted_at\":null,\"last_access_by\":\"spmrgmlcae2caj2\",\"last_access_at\":\"2026-12-05T19:58:00.6661944+00:00\",\"tags\":[\"pipeline\",\"naivebayes\",\"classification\",\"training\",\"ComplementNB\",\"zip\",\"joblib\",\"training-graphs\"]}}"
}
]
Result
{
"schema_version": "2.0",
"job_id": "1ea7974b-0cf9-436c-a283-ac97f1e21e9f",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"status": "succeeded",
"worker": {
"name": "naive_bayes",
"task_family": "classification",
"algorithm": "ComplementNB"
},
"input": {
"mode": "prepared_train_test",
"partitions": {
"train": {
"blob_id": "a504f5d2-c8c4-4a9d-ae24-23ac7d9595fd",
"row_count": 192
},
"test": {
"blob_id": "98803745-e4b6-41aa-b945-8562ef295292",
"row_count": 48
}
},
"feature_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"target_columns": [
"target"
]
},
"training": {
"effective_params": {
"alpha": 1,
"class_prior": null,
"fit_prior": true,
"force_alpha": true,
"norm": false
},
"metrics": {
"accuracy": 0.6302083333333334,
"f1_weighted": 0.6301983018202534,
"sample_count": 192,
"classes": [
0,
1
],
"confusion_matrix": [
[
60,
36
],
[
35,
61
]
]
}
},
"evaluation": {
"partition": "test",
"metrics": {
"accuracy": 0.6041666666666666,
"f1_weighted": 0.6026143790849673,
"sample_count": 48,
"classes": [
0,
1
],
"confusion_matrix": [
[
16,
8
],
[
11,
13
]
]
}
},
"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": 8,
"classes": [
0,
1
],
"class_count": [
96,
96
],
"class_log_prior": [
-0.6931471805599454,
-0.6931471805599454
],
"feature_log_prob_shape": [
2,
8
],
"theta_shape": null
},
"warnings": [],
"data": {
"row_count": 240,
"column_count": 11,
"feature_count": 8,
"file_format": "csv",
"probability_classes": [
0,
1
]
},
"runtime": {
"captured_at_utc": "2026-12-05T19:57:59.802504+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": "spmrgmlcae2caj2-w9hzt",
"jobName": "spmrgmlcae2caj2",
"container": {
"hostname": "worker-0364",
"replicaName": "worker-0364",
"processId": 1
}
}
},
"build": {
"built_at_utc": null,
"source": "unavailable",
"image_tag": null
}
}
}
Extract (10 responses)
[
{
"start_time": "2026-12-05T19:58:14.0784062+00:00",
"end_time": "2026-12-05T19:58:15.4099408+00:00",
"elapsed_milliseconds": 1331.52,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "e9abaf00-53a5-4a8f-9ecd-ef2a4f83d9e3",
"filename": "a54e6311-03d2-4471-ad75-23fead730e4f.joblib",
"source_path": "model/model.joblib",
"source_format": "joblib",
"size_bytes": 1043,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:15.4508977+00:00",
"end_time": "2026-12-05T19:58:16.3144228+00:00",
"elapsed_milliseconds": 863.52,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "7e38d894-ea3b-4ca8-a746-2546aa53a572",
"filename": "1a902da3-cbdb-4a31-91c0-6d8d11d71157.csv",
"source_path": "predictions/predictions.csv",
"source_format": "csv",
"size_bytes": 13239,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:16.364503+00:00",
"end_time": "2026-12-05T19:58:17.2831255+00:00",
"elapsed_milliseconds": 918.61,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "188ab307-aab9-4741-8ecf-88730660a982",
"filename": "6551342c-ef93-4f72-af4c-6c3fe65d8c01.png",
"source_path": "graphs/performance.png",
"source_format": "png",
"size_bytes": 32138,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:17.3378904+00:00",
"end_time": "2026-12-05T19:58:18.1394952+00:00",
"elapsed_milliseconds": 801.6,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "bb0b29c5-6013-4101-933f-1f244bb0dd46",
"filename": "fad15b4b-4523-4e29-8b22-534e960006f8.svg",
"source_path": "graphs/performance.svg",
"source_format": "svg",
"size_bytes": 27645,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:18.2249848+00:00",
"end_time": "2026-12-05T19:58:19.6816263+00:00",
"elapsed_milliseconds": 1456.62,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "a0adb483-1762-44a3-a118-13ce9ad24f01",
"filename": "3983d18c-6615-4799-b2b5-a667e95f3c47.png",
"source_path": "graphs/confusion_matrix.png",
"source_format": "png",
"size_bytes": 33987,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:19.7143607+00:00",
"end_time": "2026-12-05T19:58:20.4650067+00:00",
"elapsed_milliseconds": 750.64,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "29e3da7d-69a1-4d76-8d71-2b348946ba00",
"filename": "27f9b21a-17bc-4efd-9b0a-fd06390d19a4.svg",
"source_path": "graphs/confusion_matrix.svg",
"source_format": "svg",
"size_bytes": 36541,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:20.5116153+00:00",
"end_time": "2026-12-05T19:58:21.9250579+00:00",
"elapsed_milliseconds": 1413.43,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "b9ffcf7a-a237-459e-aa26-8b1ca330c2fb",
"filename": "6fc7fb06-3cb8-49c6-97ed-4a2c52f61538.png",
"source_path": "graphs/prediction_distribution.png",
"source_format": "png",
"size_bytes": 26774,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:21.9579285+00:00",
"end_time": "2026-12-05T19:58:23.0211796+00:00",
"elapsed_milliseconds": 1063.23,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "0fed603e-3f61-46d6-9582-bb1cad867d9e",
"filename": "cadb4285-505c-471c-b47a-2698ccba0ae7.svg",
"source_path": "graphs/prediction_distribution.svg",
"source_format": "svg",
"size_bytes": 22329,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:23.1027954+00:00",
"end_time": "2026-12-05T19:58:23.9168117+00:00",
"elapsed_milliseconds": 814,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "fded7083-25cd-48fc-bb00-a8934daf6801",
"filename": "9ecbddca-d5ab-45a2-83e5-bc57fb38b0b5.json",
"source_path": "metrics/metrics.json",
"source_format": "json",
"size_bytes": 242,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:23.9490717+00:00",
"end_time": "2026-12-05T19:58:24.9722774+00:00",
"elapsed_milliseconds": 1023.18,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7ad37105-b9a0-426c-8136-8f7542ad7f45",
"uploaded_blob_id": "4e8b4549-de06-451b-93fa-d56d763b99a4",
"filename": "6dd55a7f-b5f6-4661-bfca-2c8feecfecf9.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 3709,
"upload_status_code": 200
}
]
6. Predict / Auto with Both
SDK step: PipelineSteps.predict(...).
Predict
{
"status": "success",
"request_id": "702557d6-1095-4c4e-9aa2-eb271eb9f0a6",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"model_blob_id": "e9abaf00-53a5-4a8f-9ecd-ef2a4f83d9e3",
"model_type": "sklearn.naive_bayes.ComplementNB",
"requested_inference_type": "Auto",
"resolved_inference_type": "Predict",
"predictions": [
{
"row_index": 0,
"values": {
"prediction_0": 1
}
}
],
"stats": {
"row_count": 1,
"feature_count": 8,
"output_count": 1,
"feature_columns": [
"feature_1",
"feature_2",
"feature_3",
"feature_4",
"feature_5",
"feature_6",
"feature_7",
"feature_8"
],
"output_columns": [
"prediction_0"
],
"input_layout": "numpy",
"output_summary": {
"prediction_0": {
"min": 1,
"max": 1,
"mean": 1
}
}
},
"training_metrics": {},
"evaluation_metrics": {},
"learned": {
"classes": [
0,
1
]
},
"warnings": [],
"elapsed_seconds": 0.033306
}
Final pipeline status
Pipeline status: Succeeded; EvaluationReady: false
The status above is the final line from the matching execution output.