Skip to main content

BernoulliNB with PipelineBinaryClassification

This example pairs the original TypeScript SDK integration test with the recorded responses from its successful ParallelModel pipeline run.

PropertyRecorded value
Test ID9.5.2.ML.Pipeline.PipelineBinaryClassification.TrainTestSplit.SimpleImputer.NaiveBayes.BernoulliNB
Algorithm familyNaive Bayes
DatasetPipelineBinaryClassification
AcquisitionUploaded CSV
Pipeline modeDiagnosticTraining
Pipeline statusSucceeded
Evaluation readyfalse
PredictionRecorded (success)
Response events58
Diagnostic training

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 BernoulliNBJobSendRequestModel
} 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.BernoulliNB.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.BernoulliNB', 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): BernoulliNBJobSendRequestModel => ({
input: {
train_blob_id: partitions.train.blobId,
test_blob_id: partitions.test.blobId,
classifier_type: "BernoulliNB",
classifier_params: {
alpha: 1.0,
binarize: 0.0
},
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​

StagePartitionResponse events
Dataset/UploadDataset3
ModelSelection/TrainTestSplitDataset12
Impute/SimpleImputerTrain13
Impute/SimpleImputerTest13
NaiveBayes/BernoulliNBBoth16
Predict/AutoBoth1

1. Dataset / Upload with Dataset​

SDK step: PipelineSteps.datasetUpload(...).

Upload
{
"statusCode": 200,
"data": {
"id": "8b34df27-a735-49a3-8a74-999e77d75ae3",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"application_id": "2d62b1579c84446da6c07e864e66eb6a",
"name": "pipeline.binary.classification.csv",
"description": "",
"blob_name": "3b43bdbaaae1462aadb67e4f5516b5d2/7787c08c4c5143b183f7dc9bf09d50e9.csv",
"container_name": "models",
"storage_account_name": "storage-0002",
"blob_version_id": "2026-12-05T19:56:23.1719524Z",
"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:56:23.1833141+00:00",
"modified_by": "2d62b1579c84446da6c07e864e66eb6a",
"modified_at": "2026-12-05T19:56:23.1833141+00:00",
"is_deleted": false,
"deleted_by": "",
"deleted_at": null,
"last_access_by": "2d62b1579c84446da6c07e864e66eb6a",
"last_access_at": "2026-12-05T19:56:23.1833141+00:00",
"tags": [
"datasets",
"pipeline"
]
},
"text": "{\"id\":\"8b34df27-a735-49a3-8a74-999e77d75ae3\",\"model_id\":\"3b43bdba-aae1-462a-adb6-7e4f5516b5d2\",\"application_id\":\"2d62b1579c84446da6c07e864e66eb6a\",\"name\":\"pipeline.binary.classification.csv\",\"description\":\"\",\"blob_name\":\"3b43bdbaaae1462aadb67e4f5516b5d2/7787c08c4c5143b183f7dc9bf09d50e9.csv\",\"container_name\":\"models\",\"storage_account_name\":\"storage-0002\",\"blob_version_id\":\"2026-12-05T19:56:23.1719524Z\",\"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:56:23.1833141+00:00\",\"modified_by\":\"2d62b1579c84446da6c07e864e66eb6a\",\"modified_at\":\"2026-12-05T19:56:23.1833141+00:00\",\"is_deleted\":false,\"deleted_by\":\"\",\"deleted_at\":null,\"last_access_by\":\"2d62b1579c84446da6c07e864e66eb6a\",\"last_access_at\":\"2026-12-05T19:56:23.1833141+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:56:22 GMT",
"set-cookie": "[redacted]",
"transfer-encoding": "chunked",
"vary": "Accept-Encoding",
"x-powered-by": "ASP.NET"
},
"ok": true
}
Download
{
"blobId": "8b34df27-a735-49a3-8a74-999e77d75ae3",
"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:56:35.5182418+00:00",
"end_time": "2026-12-05T19:56:35.5741364+00:00",
"elapsed_milliseconds": 55.89,
"status": "published",
"job_id": "433e34e2-2af1-430a-a231-0b54fc5879e2",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "433e34e2-2af1-430a-a231-0b54fc5879e2",
"json": {
"job_id": "433e34e2-2af1-430a-a231-0b54fc5879e2",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"input_blob_id": "8b34df27-a735-49a3-8a74-999e77d75ae3",
"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-5c7ce88dda004fd4b10af07b500e77db-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 (3 responses)
[
{
"start_time": "2026-12-05T19:56:35.6257299+00:00",
"end_time": "2026-12-05T19:56:35.6842187+00:00",
"elapsed_milliseconds": 58.49,
"job_id": "433e34e2-2af1-430a-a231-0b54fc5879e2",
"status": "processing",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:57:06.252638+00:00",
"end_time": "2026-12-05T19:57:06.3294775+00:00",
"elapsed_milliseconds": 76.84,
"job_id": "433e34e2-2af1-430a-a231-0b54fc5879e2",
"status": "processing",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:57:36.4769203+00:00",
"end_time": "2026-12-05T19:57:36.9463057+00:00",
"elapsed_milliseconds": 469.38,
"job_id": "433e34e2-2af1-430a-a231-0b54fc5879e2",
"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:57:10.0879281+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:10.7044602+00:00",
"log": {
"status": "stage_completed",
"stage": "completing message",
"jobId": "433e34e2-2af1-430a-a231-0b54fc5879e2",
"elapsed_seconds": 0
}
}
]
Result
{
"jobId": "433e34e2-2af1-430a-a231-0b54fc5879e2",
"execution": {
"executionName": "spmrgmlcae3caj4-dvk8p",
"jobName": "spmrgmlcae3caj4",
"container": {
"hostname": "worker-0357",
"replicaName": "worker-0357",
"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:57:10.584786+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:57:42.573169+00:00",
"end_time": "2026-12-05T19:57:43.3652512+00:00",
"elapsed_milliseconds": 792.07,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "16c9d9c2-c303-4c05-8999-7a0fcdfeacb0",
"uploaded_blob_id": "cd21c5c4-08a5-40fe-b137-1abbba332fb4",
"filename": "66884be1-cb52-4331-9960-8a130c4c8435.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 1115,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:43.4133326+00:00",
"end_time": "2026-12-05T19:57:44.260725+00:00",
"elapsed_milliseconds": 847.38,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "16c9d9c2-c303-4c05-8999-7a0fcdfeacb0",
"uploaded_blob_id": "38d4225e-4433-4f44-a5ac-199023a290fd",
"filename": "e0e70eed-eb2b-4f78-98f3-6205226f7874.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 1889,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:44.2922364+00:00",
"end_time": "2026-12-05T19:57:45.107775+00:00",
"elapsed_milliseconds": 815.53,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "16c9d9c2-c303-4c05-8999-7a0fcdfeacb0",
"uploaded_blob_id": "0ccaf669-cc8b-49f0-8949-0aa784110b66",
"filename": "54c2fb4f-ad08-4ced-82b1-846f0b2cda7e.csv",
"source_path": "train.csv",
"source_format": "csv",
"size_bytes": 3543,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:45.1838404+00:00",
"end_time": "2026-12-05T19:57:45.9381974+00:00",
"elapsed_milliseconds": 754.35,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "16c9d9c2-c303-4c05-8999-7a0fcdfeacb0",
"uploaded_blob_id": "bfdcc93e-35a7-4438-9864-18d49443b910",
"filename": "9dd8e7be-e794-4212-a0fe-9cb29cc59cb1.csv",
"source_path": "test.csv",
"source_format": "csv",
"size_bytes": 951,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:45.9842391+00:00",
"end_time": "2026-12-05T19:57:46.7552001+00:00",
"elapsed_milliseconds": 770.95,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "16c9d9c2-c303-4c05-8999-7a0fcdfeacb0",
"uploaded_blob_id": "24b6d344-4650-473a-a2d1-2f3300d3bf16",
"filename": "e7934cde-1086-4b14-91ed-a159673b2ea0.csv",
"source_path": "train_indices.csv",
"source_format": "csv",
"size_bytes": 690,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:57:46.7964439+00:00",
"end_time": "2026-12-05T19:57:48.275032+00:00",
"elapsed_milliseconds": 1478.57,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "16c9d9c2-c303-4c05-8999-7a0fcdfeacb0",
"uploaded_blob_id": "f3b7719f-edc9-4f12-a037-f6eb3cd08a1a",
"filename": "c77c45e0-964f-4e9c-947c-c9902b76fd0d.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:57:48.3111768+00:00",
"end_time": "2026-12-05T19:57:48.3745626+00:00",
"elapsed_milliseconds": 63.38,
"status": "published",
"job_id": "d4eeb381-8d05-4d84-9453-d30074452a76",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "d4eeb381-8d05-4d84-9453-d30074452a76",
"json": {
"job_id": "d4eeb381-8d05-4d84-9453-d30074452a76",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"input_blob_id": "0ccaf669-cc8b-49f0-8949-0aa784110b66",
"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-5c7ce88dda004fd4b10af07b500e77db-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:57:48.4162218+00:00",
"end_time": "2026-12-05T19:57:48.4825183+00:00",
"elapsed_milliseconds": 66.3,
"job_id": "d4eeb381-8d05-4d84-9453-d30074452a76",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:58:18.6160861+00:00",
"end_time": "2026-12-05T19:58:18.692553+00:00",
"elapsed_milliseconds": 76.47,
"job_id": "d4eeb381-8d05-4d84-9453-d30074452a76",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:58:48.8267759+00:00",
"end_time": "2026-12-05T19:58:49.4091543+00:00",
"elapsed_milliseconds": 582.37,
"job_id": "d4eeb381-8d05-4d84-9453-d30074452a76",
"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:58:27.3082573+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:27.8715096+00:00",
"log": {
"status": "stage_completed",
"stage": "completing message",
"jobId": "d4eeb381-8d05-4d84-9453-d30074452a76",
"elapsed_seconds": 0
}
}
]
Result
{
"job_id": "d4eeb381-8d05-4d84-9453-d30074452a76",
"execution": {
"execution_name": "spmrgmlcae2caj6-2945c",
"job_name": "spmrgmlcae2caj6",
"container": {
"hostname": "worker-0358",
"replica_name": "worker-0358",
"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:58:27.744647+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:58:56.3916403+00:00",
"end_time": "2026-12-05T19:58:57.1760545+00:00",
"elapsed_milliseconds": 784.4,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "f2a6a368-3ea2-4d72-9105-f8b1e5bb9caa",
"uploaded_blob_id": "6d6b3d0b-fb0a-4352-848b-a6c4a1d439eb",
"filename": "28b0aad0-6702-41f7-ba05-425bc8ceb90f.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 845,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:57.2476307+00:00",
"end_time": "2026-12-05T19:58:58.1082891+00:00",
"elapsed_milliseconds": 860.64,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "f2a6a368-3ea2-4d72-9105-f8b1e5bb9caa",
"uploaded_blob_id": "928b7496-213a-412d-a765-18a663750730",
"filename": "d0b0ed04-edd3-499b-bfc4-6f48280f41a8.csv",
"source_path": "predictions.csv",
"source_format": "csv",
"size_bytes": 9175,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:58:58.1716787+00:00",
"end_time": "2026-12-05T19:59:12.7771197+00:00",
"elapsed_milliseconds": 14605.27,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "f2a6a368-3ea2-4d72-9105-f8b1e5bb9caa",
"uploaded_blob_id": "74161869-7fa2-4abe-8233-f666238c9fae",
"filename": "056fac33-4025-42e5-b81b-26e65cb1cdf4.csv",
"source_path": "imputed.csv",
"source_format": "csv",
"size_bytes": 9175,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:59:12.8251396+00:00",
"end_time": "2026-12-05T19:59:13.5913727+00:00",
"elapsed_milliseconds": 766.23,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "f2a6a368-3ea2-4d72-9105-f8b1e5bb9caa",
"uploaded_blob_id": "d626854b-ee1e-47e5-b358-cfe75aabeb94",
"filename": "4ac28bd8-8923-422c-84d0-19b96e0ad6b3.csv",
"source_path": "missingness.csv",
"source_format": "csv",
"size_bytes": 4077,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:59:13.6361031+00:00",
"end_time": "2026-12-05T19:59:14.5665872+00:00",
"elapsed_milliseconds": 930.48,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "f2a6a368-3ea2-4d72-9105-f8b1e5bb9caa",
"uploaded_blob_id": "9467d28b-72fd-4648-82de-40d7d8a44529",
"filename": "6bbbcb2a-0e88-4f73-ac0e-fb9f009b205e.csv",
"source_path": "feature_names.csv",
"source_format": "csv",
"size_bytes": 345,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:59:14.6077701+00:00",
"end_time": "2026-12-05T19:59:15.4074706+00:00",
"elapsed_milliseconds": 799.7,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "f2a6a368-3ea2-4d72-9105-f8b1e5bb9caa",
"uploaded_blob_id": "475357b2-f561-49eb-98a5-12e480d6d30e",
"filename": "c5a7312c-ad7d-49d8-9991-ade28ca3d550.csv",
"source_path": "row_partitions.csv",
"source_format": "csv",
"size_bytes": 2560,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T19:59:15.4498644+00:00",
"end_time": "2026-12-05T19:59:18.1121397+00:00",
"elapsed_milliseconds": 2662.27,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "f2a6a368-3ea2-4d72-9105-f8b1e5bb9caa",
"uploaded_blob_id": "743d53c5-5b8d-42a5-8e67-679450bf23fa",
"filename": "162f3c75-b880-4918-bcf4-22ca71e0c989.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:59:18.1593953+00:00",
"end_time": "2026-12-05T19:59:18.2189369+00:00",
"elapsed_milliseconds": 59.54,
"status": "published",
"job_id": "fa12290f-5c89-48ca-95ac-b85a4a2f65c6",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "fa12290f-5c89-48ca-95ac-b85a4a2f65c6",
"json": {
"job_id": "fa12290f-5c89-48ca-95ac-b85a4a2f65c6",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"input_blob_id": "bfdcc93e-35a7-4438-9864-18d49443b910",
"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-5c7ce88dda004fd4b10af07b500e77db-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 (3 responses)
[
{
"start_time": "2026-12-05T19:59:18.2518573+00:00",
"end_time": "2026-12-05T19:59:18.3405049+00:00",
"elapsed_milliseconds": 88.65,
"job_id": "fa12290f-5c89-48ca-95ac-b85a4a2f65c6",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T19:59:48.540802+00:00",
"end_time": "2026-12-05T19:59:48.7611401+00:00",
"elapsed_milliseconds": 220.33,
"job_id": "fa12290f-5c89-48ca-95ac-b85a4a2f65c6",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:00:18.8675155+00:00",
"end_time": "2026-12-05T20:00:19.3526495+00:00",
"elapsed_milliseconds": 485.13,
"job_id": "fa12290f-5c89-48ca-95ac-b85a4a2f65c6",
"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:59:59.3032547+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-05T20:00:00.2650748+00:00",
"log": {
"status": "stage_completed",
"stage": "completing message",
"jobId": "fa12290f-5c89-48ca-95ac-b85a4a2f65c6",
"elapsed_seconds": 0
}
}
]
Result
{
"job_id": "fa12290f-5c89-48ca-95ac-b85a4a2f65c6",
"execution": {
"execution_name": "spmrgmlcae2caj6-b9899",
"job_name": "spmrgmlcae2caj6",
"container": {
"hostname": "worker-0359",
"replica_name": "worker-0359",
"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:59:59.922179+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-05T20:00:21.2494686+00:00",
"end_time": "2026-12-05T20:00:22.1257155+00:00",
"elapsed_milliseconds": 876.24,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7d7d690f-9d72-4810-9a4c-87cce93a3dc9",
"uploaded_blob_id": "61c9236a-4d2d-4fa9-92f8-dc555d0dbe30",
"filename": "17f61059-d312-442f-824e-ab7cb004cf08.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 839,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:00:22.1777027+00:00",
"end_time": "2026-12-05T20:00:23.7473475+00:00",
"elapsed_milliseconds": 1569.62,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7d7d690f-9d72-4810-9a4c-87cce93a3dc9",
"uploaded_blob_id": "f20296a0-f9d6-460d-ad19-101db1ff8278",
"filename": "5eda9260-d689-4811-9403-78d249375b57.csv",
"source_path": "predictions.csv",
"source_format": "csv",
"size_bytes": 2344,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:00:23.7914876+00:00",
"end_time": "2026-12-05T20:00:26.668685+00:00",
"elapsed_milliseconds": 2877.16,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7d7d690f-9d72-4810-9a4c-87cce93a3dc9",
"uploaded_blob_id": "734dde62-0d69-4b44-b6ec-b2eaeb74ff4b",
"filename": "bf6d5e95-76d6-445a-a3ed-f8bdf9fd55b5.csv",
"source_path": "imputed.csv",
"source_format": "csv",
"size_bytes": 2344,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:00:26.7029445+00:00",
"end_time": "2026-12-05T20:00:28.1357302+00:00",
"elapsed_milliseconds": 1432.77,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7d7d690f-9d72-4810-9a4c-87cce93a3dc9",
"uploaded_blob_id": "d337cbe1-86fa-44af-98c1-db98edae0af8",
"filename": "b6cbe895-8c70-4878-8d5b-bc110145c83c.csv",
"source_path": "missingness.csv",
"source_format": "csv",
"size_bytes": 1105,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:00:28.256201+00:00",
"end_time": "2026-12-05T20:00:29.040991+00:00",
"elapsed_milliseconds": 784.78,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7d7d690f-9d72-4810-9a4c-87cce93a3dc9",
"uploaded_blob_id": "678d2e73-df5c-4d6a-bf6b-32c4d5f9e273",
"filename": "0ff5d48e-e22f-4cb2-adc5-7f0268069489.csv",
"source_path": "feature_names.csv",
"source_format": "csv",
"size_bytes": 345,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:00:29.0927509+00:00",
"end_time": "2026-12-05T20:00:38.5674813+00:00",
"elapsed_milliseconds": 9474.61,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7d7d690f-9d72-4810-9a4c-87cce93a3dc9",
"uploaded_blob_id": "fb3dfd80-e1a4-4005-a43b-7d224e20f5d6",
"filename": "28636917-ed32-445b-8de1-e3d9acc2a8b9.csv",
"source_path": "row_partitions.csv",
"source_format": "csv",
"size_bytes": 625,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:00:38.6274086+00:00",
"end_time": "2026-12-05T20:00:39.9574731+00:00",
"elapsed_milliseconds": 1330.05,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "7d7d690f-9d72-4810-9a4c-87cce93a3dc9",
"uploaded_blob_id": "2b1a7cf6-fb93-4f14-a4dd-a21155e15637",
"filename": "ee384e0d-3ed4-455a-9350-9a92438fcada.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 3075,
"upload_status_code": 200
}
]

5. NaiveBayes / BernoulliNB with Both​

SDK step: PipelineSteps.naiveBayes(...).

Send
{
"start_time": "2026-12-05T20:00:40.0297581+00:00",
"end_time": "2026-12-05T20:00:40.1037702+00:00",
"elapsed_milliseconds": 74.01,
"status": "published",
"job_id": "c97775cb-5607-43a0-846c-5b2b614d80b1",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "c97775cb-5607-43a0-846c-5b2b614d80b1",
"json": {
"job_id": "c97775cb-5607-43a0-846c-5b2b614d80b1",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"train_blob_id": "74161869-7fa2-4abe-8233-f666238c9fae",
"test_blob_id": "734dde62-0d69-4b44-b6ec-b2eaeb74ff4b",
"train_encryption_key": "[redacted]",
"test_encryption_key": "[redacted]",
"classifier_type": "BernoulliNB",
"classifier_params": {
"alpha": 1,
"binarize": 0
},
"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-5c7ce88dda004fd4b10af07b500e77db-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 (3 responses)
[
{
"start_time": "2026-12-05T20:00:40.1546034+00:00",
"end_time": "2026-12-05T20:00:40.2492258+00:00",
"elapsed_milliseconds": 94.62,
"job_id": "c97775cb-5607-43a0-846c-5b2b614d80b1",
"status": "processing",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:01:10.5086645+00:00",
"end_time": "2026-12-05T20:01:10.637652+00:00",
"elapsed_milliseconds": 128.99,
"job_id": "c97775cb-5607-43a0-846c-5b2b614d80b1",
"status": "processing",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:01:40.7560677+00:00",
"end_time": "2026-12-05T20:01:41.5346373+00:00",
"elapsed_milliseconds": 778.55,
"job_id": "c97775cb-5607-43a0-846c-5b2b614d80b1",
"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-05T20:01:20.3551427+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-05T20:01:22.0768344+00:00",
"log": "995615842320995,0.0004384157679002182]},{\"row_index\":231,\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.003304449634734439,0.9966955503652658]},{\"row_index\":232,\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.026098147287313855,0.9739018527126865]},{\"row_index\":233,\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.0032139369631193717,0.9967860630368804]},{\"row_index\":234,\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.024405585047290033,0.9755944149527103]},{\"row_index\":235,\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.1311771797742303,0.8688228202257693]},{\"row_index\":236,\"prediction\":0,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.7831409112860902,0.21685908871390988]},{\"row_index\":237,\"prediction\":0,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.9975207164479095,0.0024792835520903527]},{\"row_index\":238,\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.12721953949969553,0.8727804605003043]},{\"row_index\":239,\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.0017153415450161466,0.9982846584549837]}],\"warnings\":[],\"runtime\":{\"captured_at_utc\":\"2026-12-05T20:01:21.163537+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\":\"BernoulliNB\"},\"elapsed_seconds\":1.702,\"upload_status_code\":200,\"upload_response\":{\"id\":\"68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf\",\"model_id\":\"3b43bdba-aae1-462a-adb6-7e4f5516b5d2\",\"application_id\":\"spmrgmlcae2caj2\",\"name\":\"pipeline-5c7ce88dda004fd4b10af07b500e77db-04-NaiveBayes-Both.zip\",\"description\":\"Naive Bayes BernoulliNB artifacts, contract v2.0.\",\"blob_name\":\"3b43bdbaaae1462aadb67e4f5516b5d2/aa1c9510f1ee45b39fb6d77e27b5d738.zip\",\"container_name\":\"models\",\"storage_account_name\":\"storage-0002\",\"blob_version_id\":\"2026-12-05T20:01:22.0026817Z\",\"file_size_bytes\":97813,\"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-05T20:01:22.016683+00:00\",\"modified_by\":\"spmrgmlcae2caj2\",\"modified_at\":\"2026-12-05T20:01:22.016683+00:00\",\"is_deleted\":false,\"deleted_by\":\"\",\"deleted_at\":null,\"last_access_by\":\"spmrgmlcae2caj2\",\"last_access_at\":\"2026-12-05T20:01:22.016683+00:00\",\"tags\":[\"pipeline\",\"naivebayes\",\"classification\",\"training\",\"BernoulliNB\",\"zip\",\"joblib\",\"training-graphs\"]}}"
}
]
Result
{
"schema_version": "2.0",
"job_id": "c97775cb-5607-43a0-846c-5b2b614d80b1",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"status": "succeeded",
"worker": {
"name": "naive_bayes",
"task_family": "classification",
"algorithm": "BernoulliNB"
},
"input": {
"mode": "prepared_train_test",
"partitions": {
"train": {
"blob_id": "74161869-7fa2-4abe-8233-f666238c9fae",
"row_count": 192
},
"test": {
"blob_id": "734dde62-0d69-4b44-b6ec-b2eaeb74ff4b",
"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,
"binarize": 0,
"class_prior": null,
"fit_prior": true,
"force_alpha": true
},
"metrics": {
"accuracy": 0.9114583333333334,
"f1_weighted": 0.9114559314217509,
"sample_count": 192,
"classes": [
0,
1
],
"confusion_matrix": [
[
88,
8
],
[
9,
87
]
]
}
},
"evaluation": {
"partition": "test",
"metrics": {
"accuracy": 0.875,
"f1_weighted": 0.8747826086956522,
"sample_count": 48,
"classes": [
0,
1
],
"confusion_matrix": [
[
20,
4
],
[
2,
22
]
]
}
},
"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-05T20:01:21.163537+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-n4s29",
"jobName": "spmrgmlcae2caj2",
"container": {
"hostname": "worker-0360",
"replicaName": "worker-0360",
"processId": 1
}
}
},
"build": {
"built_at_utc": null,
"source": "unavailable",
"image_tag": null
}
}
}
Extract (10 responses)
[
{
"start_time": "2026-12-05T20:01:44.6741451+00:00",
"end_time": "2026-12-05T20:01:45.4800699+00:00",
"elapsed_milliseconds": 805.91,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "44a27c3a-105c-49b0-b828-faf9d693d11f",
"filename": "b01b9ad4-bd29-4d2f-b9b7-e19db42d7603.joblib",
"source_path": "model/model.joblib",
"source_format": "joblib",
"size_bytes": 1008,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:01:45.5450204+00:00",
"end_time": "2026-12-05T20:01:46.3325318+00:00",
"elapsed_milliseconds": 787.5,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "7154d351-926a-4f03-a88a-cfa7b0509da6",
"filename": "ee2d545f-a74f-4996-b211-90867080705f.csv",
"source_path": "predictions/predictions.csv",
"source_format": "csv",
"size_bytes": 13989,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:01:46.3784908+00:00",
"end_time": "2026-12-05T20:01:47.2214359+00:00",
"elapsed_milliseconds": 842.93,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "042a9c20-1edf-4fc7-b3b6-3315a078b921",
"filename": "fc54bcbb-93f3-4391-9a95-5fd3a053bb28.png",
"source_path": "graphs/performance.png",
"source_format": "png",
"size_bytes": 32130,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:01:47.2577443+00:00",
"end_time": "2026-12-05T20:01:48.0776345+00:00",
"elapsed_milliseconds": 819.88,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "45b98a6b-c1af-49d7-a973-f802e1f108d9",
"filename": "abb76011-287a-4f0a-88dc-89736238bd8f.svg",
"source_path": "graphs/performance.svg",
"source_format": "svg",
"size_bytes": 27639,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:01:48.1866174+00:00",
"end_time": "2026-12-05T20:01:49.507568+00:00",
"elapsed_milliseconds": 1320.93,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "18181537-bd46-4c89-9b52-8b72e90783d5",
"filename": "3d92a187-6262-4da2-932f-e105e592b693.png",
"source_path": "graphs/confusion_matrix.png",
"source_format": "png",
"size_bytes": 35894,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:01:49.5397953+00:00",
"end_time": "2026-12-05T20:01:50.2990636+00:00",
"elapsed_milliseconds": 759.26,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "4ddaa000-e494-4616-966a-e9c84205ec70",
"filename": "e2c3d3ac-d837-4989-aaf0-74f4fbea83f9.svg",
"source_path": "graphs/confusion_matrix.svg",
"source_format": "svg",
"size_bytes": 35452,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:01:50.3652825+00:00",
"end_time": "2026-12-05T20:01:51.0986788+00:00",
"elapsed_milliseconds": 733.38,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "5a702676-0eb6-4a52-b5a5-4b2840ccf971",
"filename": "d2cf939b-e4f4-49b3-bd6c-491e8183b946.png",
"source_path": "graphs/prediction_distribution.png",
"source_format": "png",
"size_bytes": 26796,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:01:51.1452495+00:00",
"end_time": "2026-12-05T20:01:52.6023149+00:00",
"elapsed_milliseconds": 1457.04,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "41918d55-19d7-430a-9afd-78f9f80f1fea",
"filename": "d6c80251-49a3-43c8-8c6d-72a544d07a17.svg",
"source_path": "graphs/prediction_distribution.svg",
"source_format": "svg",
"size_bytes": 22328,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:01:52.6652721+00:00",
"end_time": "2026-12-05T20:01:53.4606668+00:00",
"elapsed_milliseconds": 795.38,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "570ecb66-1290-4022-8bbd-45ef223102fd",
"filename": "2f04bca1-57c6-4461-96a2-3e1bd4e8618e.json",
"source_path": "metrics/metrics.json",
"source_format": "json",
"size_bytes": 228,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:01:53.4980121+00:00",
"end_time": "2026-12-05T20:01:54.4273144+00:00",
"elapsed_milliseconds": 929.28,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "68d794a0-1f28-4cec-b6c0-3f4d7f4bcfcf",
"uploaded_blob_id": "92d3c3e5-3d1a-4895-867a-32983a745241",
"filename": "15b9e2d7-c36c-48da-b785-a8278104da29.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 3694,
"upload_status_code": 200
}
]

6. Predict / Auto with Both​

SDK step: PipelineSteps.predict(...).

Predict
{
"status": "success",
"request_id": "3039fc8c-0662-4937-8627-66f31668cf59",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"model_blob_id": "44a27c3a-105c-49b0-b828-faf9d693d11f",
"model_type": "sklearn.naive_bayes.BernoulliNB",
"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.003597
}

Final pipeline status​

Pipeline status: Succeeded; EvaluationReady: false

The status above is the final line from the matching execution output.