Skip to main content

MultinomialNB 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.MultinomialNB
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 MultinomialNBJobSendRequestModel
} 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.MultinomialNB.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.MultinomialNB', 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): MultinomialNBJobSendRequestModel => ({
input: {
train_blob_id: partitions.train.blobId,
test_blob_id: partitions.test.blobId,
classifier_type: "MultinomialNB",
classifier_params: {
alpha: 1.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/SimpleImputerTrain14
Impute/SimpleImputerTest12
NaiveBayes/MultinomialNBBoth16
Predict/AutoBoth1

1. Dataset / Upload with Dataset​

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

Upload
{
"statusCode": 200,
"data": {
"id": "fbf891c0-56f4-4180-adaa-94a1f8bb2250",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"application_id": "2d62b1579c84446da6c07e864e66eb6a",
"name": "pipeline.binary.classification.csv",
"description": "",
"blob_name": "3b43bdbaaae1462aadb67e4f5516b5d2/34711fa1c51540539d05d3f8259a5d17.csv",
"container_name": "models",
"storage_account_name": "storage-0002",
"blob_version_id": "2026-12-05T20:01:56.2252446Z",
"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-05T20:01:56.263101+00:00",
"modified_by": "2d62b1579c84446da6c07e864e66eb6a",
"modified_at": "2026-12-05T20:01:56.263101+00:00",
"is_deleted": false,
"deleted_by": "",
"deleted_at": null,
"last_access_by": "2d62b1579c84446da6c07e864e66eb6a",
"last_access_at": "2026-12-05T20:01:56.263101+00:00",
"tags": [
"datasets",
"pipeline"
]
},
"text": "{\"id\":\"fbf891c0-56f4-4180-adaa-94a1f8bb2250\",\"model_id\":\"3b43bdba-aae1-462a-adb6-7e4f5516b5d2\",\"application_id\":\"2d62b1579c84446da6c07e864e66eb6a\",\"name\":\"pipeline.binary.classification.csv\",\"description\":\"\",\"blob_name\":\"3b43bdbaaae1462aadb67e4f5516b5d2/34711fa1c51540539d05d3f8259a5d17.csv\",\"container_name\":\"models\",\"storage_account_name\":\"storage-0002\",\"blob_version_id\":\"2026-12-05T20:01:56.2252446Z\",\"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-05T20:01:56.263101+00:00\",\"modified_by\":\"2d62b1579c84446da6c07e864e66eb6a\",\"modified_at\":\"2026-12-05T20:01:56.263101+00:00\",\"is_deleted\":false,\"deleted_by\":\"\",\"deleted_at\":null,\"last_access_by\":\"2d62b1579c84446da6c07e864e66eb6a\",\"last_access_at\":\"2026-12-05T20:01:56.263101+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 20:01:56 GMT",
"set-cookie": "[redacted]",
"transfer-encoding": "chunked",
"vary": "Accept-Encoding",
"x-powered-by": "ASP.NET"
},
"ok": true
}
Download
{
"blobId": "fbf891c0-56f4-4180-adaa-94a1f8bb2250",
"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-05T20:02:08.01579+00:00",
"end_time": "2026-12-05T20:02:08.0775725+00:00",
"elapsed_milliseconds": 61.78,
"status": "published",
"job_id": "0706cd73-b220-4e35-a435-764c6ab5260c",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "0706cd73-b220-4e35-a435-764c6ab5260c",
"json": {
"job_id": "0706cd73-b220-4e35-a435-764c6ab5260c",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"input_blob_id": "fbf891c0-56f4-4180-adaa-94a1f8bb2250",
"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-030cdad84e904af2bdeef80e8c26f8b9-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-05T20:02:08.1112986+00:00",
"end_time": "2026-12-05T20:02:08.174274+00:00",
"elapsed_milliseconds": 62.97,
"job_id": "0706cd73-b220-4e35-a435-764c6ab5260c",
"status": "processing",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:02:38.2889162+00:00",
"end_time": "2026-12-05T20:02:38.4425528+00:00",
"elapsed_milliseconds": 153.63,
"job_id": "0706cd73-b220-4e35-a435-764c6ab5260c",
"status": "processing",
"topic": "pm.topic.ml.modelselection",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:03:08.5512077+00:00",
"end_time": "2026-12-05T20:03:08.8792292+00:00",
"elapsed_milliseconds": 328.02,
"job_id": "0706cd73-b220-4e35-a435-764c6ab5260c",
"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-05T20:02:45.4584154+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:02:46.0175995+00:00",
"log": {
"status": "stage_completed",
"stage": "completing message",
"jobId": "0706cd73-b220-4e35-a435-764c6ab5260c",
"elapsed_seconds": 0
}
}
]
Result
{
"jobId": "0706cd73-b220-4e35-a435-764c6ab5260c",
"execution": {
"executionName": "spmrgmlcae3caj4-xknm6",
"jobName": "spmrgmlcae3caj4",
"container": {
"hostname": "worker-0365",
"replicaName": "worker-0365",
"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-05T20:02:45.852645+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-05T20:03:12.1585877+00:00",
"end_time": "2026-12-05T20:03:13.2549847+00:00",
"elapsed_milliseconds": 1096.39,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "934f3a7f-3923-4f5d-acfe-45e4bdee403c",
"uploaded_blob_id": "1874e632-b2f0-4298-ba0b-885e9555c94c",
"filename": "bee43742-fc55-4322-b754-ccbd0586e09b.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 1113,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:03:13.3846934+00:00",
"end_time": "2026-12-05T20:03:15.5024414+00:00",
"elapsed_milliseconds": 2117.74,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "934f3a7f-3923-4f5d-acfe-45e4bdee403c",
"uploaded_blob_id": "b4e03439-fa86-4673-9b41-a768cecde193",
"filename": "44aa395f-12d4-4388-a3d1-45b9ecf4f2ce.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 1889,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:03:15.5564643+00:00",
"end_time": "2026-12-05T20:03:17.3767621+00:00",
"elapsed_milliseconds": 1820.29,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "934f3a7f-3923-4f5d-acfe-45e4bdee403c",
"uploaded_blob_id": "c1db0949-8c9c-4278-a8df-e7d7634c63fd",
"filename": "63c730d9-46c3-4b27-9bda-bf38e14060f5.csv",
"source_path": "train.csv",
"source_format": "csv",
"size_bytes": 3543,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:03:17.451861+00:00",
"end_time": "2026-12-05T20:03:20.5313335+00:00",
"elapsed_milliseconds": 3079.45,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "934f3a7f-3923-4f5d-acfe-45e4bdee403c",
"uploaded_blob_id": "5e8ac478-36b2-4c3f-916e-02436449efaa",
"filename": "68899865-0668-46f4-b8f8-a0fbbe61588d.csv",
"source_path": "test.csv",
"source_format": "csv",
"size_bytes": 951,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:03:20.5763415+00:00",
"end_time": "2026-12-05T20:03:21.3509477+00:00",
"elapsed_milliseconds": 774.6,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "934f3a7f-3923-4f5d-acfe-45e4bdee403c",
"uploaded_blob_id": "0ef61846-e9de-495e-8a2f-4411f44e4b1d",
"filename": "83c4d11e-0b21-47ef-98e0-a48b8526123b.csv",
"source_path": "train_indices.csv",
"source_format": "csv",
"size_bytes": 690,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:03:21.3995979+00:00",
"end_time": "2026-12-05T20:03:22.2577795+00:00",
"elapsed_milliseconds": 858.17,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "934f3a7f-3923-4f5d-acfe-45e4bdee403c",
"uploaded_blob_id": "c2305be6-4f30-4bef-9a49-7368db2f9e07",
"filename": "29a0efe3-ac5c-4bc6-8e00-a737ef992501.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-05T20:03:22.2972675+00:00",
"end_time": "2026-12-05T20:03:22.3835168+00:00",
"elapsed_milliseconds": 86.25,
"status": "published",
"job_id": "5b0628a5-6f43-4f38-a738-8dbe0066117e",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "5b0628a5-6f43-4f38-a738-8dbe0066117e",
"json": {
"job_id": "5b0628a5-6f43-4f38-a738-8dbe0066117e",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"input_blob_id": "c1db0949-8c9c-4278-a8df-e7d7634c63fd",
"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-030cdad84e904af2bdeef80e8c26f8b9-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 (4 responses)
[
{
"start_time": "2026-12-05T20:03:22.428251+00:00",
"end_time": "2026-12-05T20:03:22.504209+00:00",
"elapsed_milliseconds": 75.96,
"job_id": "5b0628a5-6f43-4f38-a738-8dbe0066117e",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:03:52.6558293+00:00",
"end_time": "2026-12-05T20:03:52.7511271+00:00",
"elapsed_milliseconds": 95.3,
"job_id": "5b0628a5-6f43-4f38-a738-8dbe0066117e",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:04:22.8820833+00:00",
"end_time": "2026-12-05T20:04:22.9888+00:00",
"elapsed_milliseconds": 106.71,
"job_id": "5b0628a5-6f43-4f38-a738-8dbe0066117e",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:04:53.0968039+00:00",
"end_time": "2026-12-05T20:04:53.6099524+00:00",
"elapsed_milliseconds": 513.14,
"job_id": "5b0628a5-6f43-4f38-a738-8dbe0066117e",
"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-05T20:04:03.1951134+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:04:32.2916159+00:00",
"log": {
"status": "stage_completed",
"stage": "completing message",
"jobId": "5b0628a5-6f43-4f38-a738-8dbe0066117e",
"elapsed_seconds": 0
}
}
]
Result
{
"job_id": "5b0628a5-6f43-4f38-a738-8dbe0066117e",
"execution": {
"execution_name": "spmrgmlcae2caj6-slxfp",
"job_name": "spmrgmlcae2caj6",
"container": {
"hostname": "worker-0366",
"replica_name": "worker-0366",
"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-05T20:04:03.735518+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:04:56.0799185+00:00",
"end_time": "2026-12-05T20:04:57.491886+00:00",
"elapsed_milliseconds": 1411.95,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6d40d401-a9e4-4fbb-8a4c-ed1bda1784f0",
"uploaded_blob_id": "05be80df-b62a-4beb-9f46-132e3823a037",
"filename": "0df21a0e-ca30-468f-be96-64354e4623d9.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 844,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:04:57.5424184+00:00",
"end_time": "2026-12-05T20:04:59.1623779+00:00",
"elapsed_milliseconds": 1619.94,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6d40d401-a9e4-4fbb-8a4c-ed1bda1784f0",
"uploaded_blob_id": "dfd4ff9d-c2e0-40ba-9464-03d65164958d",
"filename": "70212928-f6e1-4bae-8ce8-59a22cddb668.csv",
"source_path": "predictions.csv",
"source_format": "csv",
"size_bytes": 9175,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:04:59.2124932+00:00",
"end_time": "2026-12-05T20:05:00.042842+00:00",
"elapsed_milliseconds": 830.34,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6d40d401-a9e4-4fbb-8a4c-ed1bda1784f0",
"uploaded_blob_id": "b1991e1b-7547-47a8-82da-efb5ef6f57ce",
"filename": "0dcf7477-fd1e-47ed-9989-ce32c7466722.csv",
"source_path": "imputed.csv",
"source_format": "csv",
"size_bytes": 9175,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:00.1353653+00:00",
"end_time": "2026-12-05T20:05:00.905401+00:00",
"elapsed_milliseconds": 770.03,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6d40d401-a9e4-4fbb-8a4c-ed1bda1784f0",
"uploaded_blob_id": "add3475f-6263-46ce-a104-6959e1f72d63",
"filename": "3f231bd3-2330-4807-bf96-660296f6088e.csv",
"source_path": "missingness.csv",
"source_format": "csv",
"size_bytes": 4077,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:00.9632084+00:00",
"end_time": "2026-12-05T20:05:02.8132682+00:00",
"elapsed_milliseconds": 1850.04,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6d40d401-a9e4-4fbb-8a4c-ed1bda1784f0",
"uploaded_blob_id": "bf888f15-112d-4f7f-afc3-e975a842ea0a",
"filename": "e9f37421-d386-426a-9042-778e9cca66fe.csv",
"source_path": "feature_names.csv",
"source_format": "csv",
"size_bytes": 345,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:02.8862075+00:00",
"end_time": "2026-12-05T20:05:11.4394259+00:00",
"elapsed_milliseconds": 8553.11,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6d40d401-a9e4-4fbb-8a4c-ed1bda1784f0",
"uploaded_blob_id": "d023d233-234f-4024-8050-c483df595ea0",
"filename": "0133717d-ef20-46af-a343-a94d9985af72.csv",
"source_path": "row_partitions.csv",
"source_format": "csv",
"size_bytes": 2560,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:11.4843367+00:00",
"end_time": "2026-12-05T20:05:14.7380894+00:00",
"elapsed_milliseconds": 3253.71,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "6d40d401-a9e4-4fbb-8a4c-ed1bda1784f0",
"uploaded_blob_id": "d582357d-ff3c-4d14-b937-74efd26713ac",
"filename": "c7e04135-79bb-457c-8d83-dc42aa742c89.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-05T20:05:14.7777241+00:00",
"end_time": "2026-12-05T20:05:14.840134+00:00",
"elapsed_milliseconds": 62.41,
"status": "published",
"job_id": "57f506e3-1eea-4b6c-b5f2-7e7b477e817a",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "57f506e3-1eea-4b6c-b5f2-7e7b477e817a",
"json": {
"job_id": "57f506e3-1eea-4b6c-b5f2-7e7b477e817a",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"input_blob_id": "5e8ac478-36b2-4c3f-916e-02436449efaa",
"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-030cdad84e904af2bdeef80e8c26f8b9-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-05T20:05:14.8851496+00:00",
"end_time": "2026-12-05T20:05:14.9282884+00:00",
"elapsed_milliseconds": 43.14,
"job_id": "57f506e3-1eea-4b6c-b5f2-7e7b477e817a",
"status": "processing",
"topic": "pm.topic.ml.impute",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:05:45.0303924+00:00",
"end_time": "2026-12-05T20:05:46.0369877+00:00",
"elapsed_milliseconds": 1006.58,
"job_id": "57f506e3-1eea-4b6c-b5f2-7e7b477e817a",
"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-05T20:05:21.2022472+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:05:21.7713756+00:00",
"log": {
"status": "stage_completed",
"stage": "completing message",
"jobId": "57f506e3-1eea-4b6c-b5f2-7e7b477e817a",
"elapsed_seconds": 0
}
}
]
Result
{
"job_id": "57f506e3-1eea-4b6c-b5f2-7e7b477e817a",
"execution": {
"execution_name": "spmrgmlcae2caj6-bdl9d",
"job_name": "spmrgmlcae2caj6",
"container": {
"hostname": "worker-0367",
"replica_name": "worker-0367",
"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-05T20:05:21.636243+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:05:50.8820144+00:00",
"end_time": "2026-12-05T20:05:51.7211163+00:00",
"elapsed_milliseconds": 839.08,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "869b08f0-ae9b-46a2-9526-a3c896915283",
"uploaded_blob_id": "e75d05aa-f8b4-4ce4-ba77-f9584bdc0ddf",
"filename": "8f0a5f03-398f-4de2-a6ff-cd9174049bff.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 838,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:51.7720933+00:00",
"end_time": "2026-12-05T20:05:53.0805526+00:00",
"elapsed_milliseconds": 1308.42,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "869b08f0-ae9b-46a2-9526-a3c896915283",
"uploaded_blob_id": "c210b0ea-3633-464a-a0ae-eecfb6baeccc",
"filename": "3e73af8f-3e29-4e2e-9c99-6853004cadc0.csv",
"source_path": "predictions.csv",
"source_format": "csv",
"size_bytes": 2344,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:53.1178634+00:00",
"end_time": "2026-12-05T20:05:53.8854055+00:00",
"elapsed_milliseconds": 767.52,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "869b08f0-ae9b-46a2-9526-a3c896915283",
"uploaded_blob_id": "1b9570eb-28f3-4803-9045-c8d81427ddc3",
"filename": "66951d6f-7d23-41c9-a57c-d40ffffe9edf.csv",
"source_path": "imputed.csv",
"source_format": "csv",
"size_bytes": 2344,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:53.9235206+00:00",
"end_time": "2026-12-05T20:05:55.3157615+00:00",
"elapsed_milliseconds": 1392.2,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "869b08f0-ae9b-46a2-9526-a3c896915283",
"uploaded_blob_id": "fb153ad2-dea9-4527-ac85-f8f5642c5d8e",
"filename": "aeb92670-356c-43a1-ac9e-08bc401ac8d3.csv",
"source_path": "missingness.csv",
"source_format": "csv",
"size_bytes": 1105,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:55.3558351+00:00",
"end_time": "2026-12-05T20:05:56.1493095+00:00",
"elapsed_milliseconds": 793.45,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "869b08f0-ae9b-46a2-9526-a3c896915283",
"uploaded_blob_id": "eb1b1701-03d6-47b7-8c28-171e1719cc66",
"filename": "31cbf674-6e64-4fe3-b595-4406ec0058c5.csv",
"source_path": "feature_names.csv",
"source_format": "csv",
"size_bytes": 345,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:56.2404813+00:00",
"end_time": "2026-12-05T20:05:57.3203136+00:00",
"elapsed_milliseconds": 1079.8,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "869b08f0-ae9b-46a2-9526-a3c896915283",
"uploaded_blob_id": "68df93fd-38c0-46bb-942e-86934ee06691",
"filename": "3744d159-7595-4132-9723-5bb27cf17293.csv",
"source_path": "row_partitions.csv",
"source_format": "csv",
"size_bytes": 625,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:05:57.3692961+00:00",
"end_time": "2026-12-05T20:06:00.1133495+00:00",
"elapsed_milliseconds": 2743.99,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "869b08f0-ae9b-46a2-9526-a3c896915283",
"uploaded_blob_id": "e99b1eb8-b8b2-4049-98cb-48b655290cd9",
"filename": "05965622-6e9d-4293-b44b-46c4408ae9df.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 3075,
"upload_status_code": 200
}
]

5. NaiveBayes / MultinomialNB with Both​

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

Send
{
"start_time": "2026-12-05T20:06:00.2631535+00:00",
"end_time": "2026-12-05T20:06:00.3398681+00:00",
"elapsed_milliseconds": 76.71,
"status": "published",
"job_id": "cce93e86-fcf7-46a5-86ee-b390b82a4ebe",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "cce93e86-fcf7-46a5-86ee-b390b82a4ebe",
"json": {
"job_id": "cce93e86-fcf7-46a5-86ee-b390b82a4ebe",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"input": {
"train_blob_id": "b1991e1b-7547-47a8-82da-efb5ef6f57ce",
"test_blob_id": "1b9570eb-28f3-4803-9045-c8d81427ddc3",
"train_encryption_key": "[redacted]",
"test_encryption_key": "[redacted]",
"classifier_type": "MultinomialNB",
"classifier_params": {
"alpha": 1
},
"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-030cdad84e904af2bdeef80e8c26f8b9-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:06:00.4084275+00:00",
"end_time": "2026-12-05T20:06:00.4782377+00:00",
"elapsed_milliseconds": 69.81,
"job_id": "cce93e86-fcf7-46a5-86ee-b390b82a4ebe",
"status": "processing",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:06:30.7018232+00:00",
"end_time": "2026-12-05T20:06:30.7548173+00:00",
"elapsed_milliseconds": 52.99,
"job_id": "cce93e86-fcf7-46a5-86ee-b390b82a4ebe",
"status": "processing",
"topic": "pm.topic.ml.naivebayes",
"subscription": "cpu.0p5c.1gi"
},
{
"start_time": "2026-12-05T20:07:00.8733281+00:00",
"end_time": "2026-12-05T20:07:01.1827559+00:00",
"elapsed_milliseconds": 309.42,
"job_id": "cce93e86-fcf7-46a5-86ee-b390b82a4ebe",
"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:06:43.1803755+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:06:44.81886+00:00",
"log": "\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.43408523295622675,0.5659147670437729]},{\"row_index\":237,\"prediction\":0,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.5290478752017211,0.47095212479827886]},{\"row_index\":238,\"prediction\":0,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.5550898101538821,0.44491018984611713]},{\"row_index\":239,\"prediction\":1,\"partition\":\"holdout\",\"decision_score\":null,\"probabilities\":[0.4530526145154607,0.5469473854845385]}],\"warnings\":[],\"runtime\":{\"captured_at_utc\":\"2026-12-05T20:06:43.957416+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\":\"MultinomialNB\"},\"elapsed_seconds\":1.629,\"upload_status_code\":200,\"upload_response\":{\"id\":\"0454a966-fde2-4bc3-91b9-4076331de50a\",\"model_id\":\"3b43bdba-aae1-462a-adb6-7e4f5516b5d2\",\"application_id\":\"spmrgmlcae2caj2\",\"name\":\"pipeline-030cdad84e904af2bdeef80e8c26f8b9-04-NaiveBayes-Both.zip\",\"description\":\"Naive Bayes MultinomialNB artifacts, contract v2.0.\",\"blob_name\":\"3b43bdbaaae1462aadb67e4f5516b5d2/b3a711fff5854cf79c287cb9c0f21321.zip\",\"container_name\":\"models\",\"storage_account_name\":\"storage-0002\",\"blob_version_id\":\"2026-12-05T20:06:44.7540704Z\",\"file_size_bytes\":96715,\"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:06:44.7683229+00:00\",\"modified_by\":\"spmrgmlcae2caj2\",\"modified_at\":\"2026-12-05T20:06:44.7683229+00:00\",\"is_deleted\":false,\"deleted_by\":\"\",\"deleted_at\":null,\"last_access_by\":\"spmrgmlcae2caj2\",\"last_access_at\":\"2026-12-05T20:06:44.7683229+00:00\",\"tags\":[\"pipeline\",\"naivebayes\",\"classification\",\"training\",\"MultinomialNB\",\"zip\",\"joblib\",\"training-graphs\"]}}"
}
]
Result
{
"schema_version": "2.0",
"job_id": "cce93e86-fcf7-46a5-86ee-b390b82a4ebe",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"status": "succeeded",
"worker": {
"name": "naive_bayes",
"task_family": "classification",
"algorithm": "MultinomialNB"
},
"input": {
"mode": "prepared_train_test",
"partitions": {
"train": {
"blob_id": "b1991e1b-7547-47a8-82da-efb5ef6f57ce",
"row_count": 192
},
"test": {
"blob_id": "1b9570eb-28f3-4803-9045-c8d81427ddc3",
"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
},
"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-05T20:06:43.957416+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-df6gm",
"jobName": "spmrgmlcae2caj2",
"container": {
"hostname": "worker-0368",
"replicaName": "worker-0368",
"processId": 1
}
}
},
"build": {
"built_at_utc": null,
"source": "unavailable",
"image_tag": null
}
}
}
Extract (10 responses)
[
{
"start_time": "2026-12-05T20:07:03.2993074+00:00",
"end_time": "2026-12-05T20:07:04.3416846+00:00",
"elapsed_milliseconds": 1042.36,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "4270fe7e-6b4f-47b6-8e7e-6335cada4268",
"filename": "ad1f591b-768d-47c5-bf7b-0c675af97fda.joblib",
"source_path": "model/model.joblib",
"source_format": "joblib",
"size_bytes": 998,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:07:04.3865795+00:00",
"end_time": "2026-12-05T20:07:05.18449+00:00",
"elapsed_milliseconds": 797.9,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "fecd3972-1bbf-48d0-8217-ca8bde6a6204",
"filename": "91c1b45d-7f06-4cad-9c98-f43a4b56913b.csv",
"source_path": "predictions/predictions.csv",
"source_format": "csv",
"size_bytes": 13252,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:07:05.240731+00:00",
"end_time": "2026-12-05T20:07:06.1898649+00:00",
"elapsed_milliseconds": 949.12,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "b68b0617-c0f4-4fb0-b6e4-ce78029caadc",
"filename": "0b88a3ba-af9f-482e-8d37-b0334b86b069.png",
"source_path": "graphs/performance.png",
"source_format": "png",
"size_bytes": 32138,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:07:06.2291148+00:00",
"end_time": "2026-12-05T20:07:06.9578146+00:00",
"elapsed_milliseconds": 728.69,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "f2fed5ab-5822-4189-9365-f210b88607b3",
"filename": "9e3660f7-7bd4-4678-a683-e23ce4afc7a9.svg",
"source_path": "graphs/performance.svg",
"source_format": "svg",
"size_bytes": 27645,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:07:07.0447447+00:00",
"end_time": "2026-12-05T20:07:08.469953+00:00",
"elapsed_milliseconds": 1425.19,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "43ea593b-614a-48b1-bef7-2902c6730058",
"filename": "2c7406c6-efd5-4672-80d9-2855b8dc66cf.png",
"source_path": "graphs/confusion_matrix.png",
"source_format": "png",
"size_bytes": 33987,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:07:08.5459731+00:00",
"end_time": "2026-12-05T20:07:09.7866062+00:00",
"elapsed_milliseconds": 1240.62,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "558a5ba5-10c7-4226-a217-f4c2ebef10b4",
"filename": "24deb340-c67b-4910-bfcd-1fb900e6004b.svg",
"source_path": "graphs/confusion_matrix.svg",
"source_format": "svg",
"size_bytes": 36541,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:07:09.8421963+00:00",
"end_time": "2026-12-05T20:07:11.1430703+00:00",
"elapsed_milliseconds": 1300.86,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "7d453212-97a4-4e8c-8460-2a03ba21ddc1",
"filename": "8333edbd-d3a7-4525-aab2-190ff2853120.png",
"source_path": "graphs/prediction_distribution.png",
"source_format": "png",
"size_bytes": 26774,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:07:11.1855102+00:00",
"end_time": "2026-12-05T20:07:11.9590136+00:00",
"elapsed_milliseconds": 773.49,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "4976813b-0a78-4943-8087-1ea52dbd417d",
"filename": "d7fc4101-cdb5-4ed1-8307-449f27df3270.svg",
"source_path": "graphs/prediction_distribution.svg",
"source_format": "svg",
"size_bytes": 22329,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:07:12.0537428+00:00",
"end_time": "2026-12-05T20:07:19.353564+00:00",
"elapsed_milliseconds": 7299.72,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "a4f404c4-14b4-488e-9c20-96e932307801",
"filename": "8aba8463-8a83-4a60-a14d-589cb6b5378c.json",
"source_path": "metrics/metrics.json",
"source_format": "json",
"size_bytes": 242,
"upload_status_code": 200
},
{
"start_time": "2026-12-05T20:07:19.394731+00:00",
"end_time": "2026-12-05T20:07:37.6080524+00:00",
"elapsed_milliseconds": 18213.08,
"status": "uploaded",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"source_blob_id": "0454a966-fde2-4bc3-91b9-4076331de50a",
"uploaded_blob_id": "74f6f70b-81b6-4b27-950f-c8aaf5c3d79c",
"filename": "2d0b40db-7632-4bbb-b172-202d7bbdcf6c.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 3689,
"upload_status_code": 200
}
]

6. Predict / Auto with Both​

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

Predict
{
"status": "success",
"request_id": "bed6b44a-fede-408e-8eaf-1f270b75917d",
"model_id": "3b43bdba-aae1-462a-adb6-7e4f5516b5d2",
"model_blob_id": "4270fe7e-6b4f-47b6-8e7e-6335cada4268",
"model_type": "sklearn.naive_bayes.MultinomialNB",
"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.019553
}

Final pipeline status​

Pipeline status: Succeeded; EvaluationReady: false

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