Skip to main content

PassiveAggressiveClassifier

Linear Models standalone SDK operation. Source: 6.3.ML.LinearModel.cs. Read the complete C# integration test and setup.

5 recorded job(s); 5 have a success/completed status and a saved result. These are API records rather than independently verified test passes.

Recorded scenarios​

Recorded scenarioPartitionLast statusEvidenceJSON trace
LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer / PassiveAggressiveClassifierwhole runcompletedResult recordedrun-0363
LoadBreastCancer-TrainTestSplit-SimpleImputer-KBinsDiscretizer / PassiveAggressiveClassifierwhole runcompletedResult recordedrun-0371
LoadBreastCancer-TrainTestSplit-SimpleImputer-QuantileTransformer / PassiveAggressiveClassifierwhole runcompletedResult recordedrun-0379
LoadBreastCancer-TrainTestSplit-SimpleImputer-StandardScaler / PassiveAggressiveClassifierwhole runcompletedResult recordedrun-0387
LoadBreastCancer-TrainTestSplit-SimpleImputer-normalize / PassiveAggressiveClassifierwhole runcompletedResult recordedrun-0395

Representative execution​

Scenario: LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer / PassiveAggressiveClassifier; partition: whole run; observed status: completed. run-0363 contains all recorded numbered JSON events for this job.

Operation selection in the C# test​

These are matching lines from the parameterized test, not a separate runnable program. See the full source for context.

"LogisticRegression", "LogisticRegressionCV", "PassiveAggressiveClassifier", "Perceptron",
"PassiveAggressiveClassifier" => await SendTypedAsync(new PassiveAggressiveClassifierJobSendRequestModel
ClassifierType = "PassiveAggressiveClassifier",

Request​

{
"input": {
"train_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"test_blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"classifier_type": "PassiveAggressiveClassifier",
"classifier_params": {},
"feature_columns": [
"mean radius",
"mean texture",
"mean perimeter",
"mean area",
"mean smoothness",
"mean compactness",
"mean concavity",
"mean concave points",
"mean symmetry",
"mean fractal dimension",
"radius error",
"texture error",
"perimeter error",
"area error",
"smoothness error",
"compactness error",
"concavity error",
"concave points error",
"symmetry error",
"fractal dimension error",
"worst radius",
"worst texture",
"worst perimeter",
"worst area",
"worst smoothness",
"worst compactness",
"worst concavity",
"worst concave points",
"worst symmetry",
"worst fractal dimension"
],
"file_format": "csv",
"target_column": "target",
"target_columns": null,
"generate_graphs": true
},
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-PassiveAggressiveClassifier.zip",
"description": "Linear Model integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"linearmodel",
"LoadBreastCancer",
"FunctionTransformer",
"PassiveAggressiveClassifier"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-11-30T16:13:32.6999539+00:00",
"end_time": "2026-11-30T16:13:32.7885572+00:00",
"elapsed_milliseconds": 88.6,
"status": "published",
"job_id": "288f882e-2e60-cab2-1df3-599da571358f",
"topic": "pm.topic.ml.linearmodel",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "288f882e-2e60-cab2-1df3-599da571358f",
"json": {
"job_id": "288f882e-2e60-cab2-1df3-599da571358f",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"train_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"train_encryption_key": "[REDACTED]",
"test_blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"test_encryption_key": "[REDACTED]",
"classifier_type": "PassiveAggressiveClassifier",
"classifier_params": {},
"feature_columns": [
"mean radius",
"mean texture",
"mean perimeter",
"mean area",
"mean smoothness",
"mean compactness",
"mean concavity",
"mean concave points",
"mean symmetry",
"mean fractal dimension",
"radius error",
"texture error",
"perimeter error",
"area error",
"smoothness error",
"compactness error",
"concavity error",
"concave points error",
"symmetry error",
"fractal dimension error",
"worst radius",
"worst texture",
"worst perimeter",
"worst area",
"worst smoothness",
"worst compactness",
"worst concavity",
"worst concave points",
"worst symmetry",
"worst fractal dimension"
],
"file_format": "csv"
},
"request_timeout_seconds": 300,
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-PassiveAggressiveClassifier.zip",
"description": "Linear Model integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"linearmodel",
"LoadBreastCancer",
"FunctionTransformer",
"PassiveAggressiveClassifier"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
},
"target_column": "target",
"target_columns": null,
"evaluation": null,
"generate_graphs": true
},
"topic": "pm.topic.ml.linearmodel",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-11-30T16:14:03.0223926+00:00",
"end_time": "2026-11-30T16:14:03.3776295+00:00",
"elapsed_milliseconds": 355.23,
"job_id": "288f882e-2e60-cab2-1df3-599da571358f",
"status": "completed",
"topic": "pm.topic.ml.linearmodel",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"schema_version": "2.0",
"job_id": "288f882e-2e60-cab2-1df3-599da571358f",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "linear_model",
"task_family": "classification",
"algorithm": "PassiveAggressiveClassifier"
},
"input": {
"mode": "prepared_train_test",
"partitions": {
"train": {
"blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"row_count": 426
},
"test": {
"blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"row_count": 143
}
},
"feature_columns": [
"mean radius",
"mean texture",
"mean perimeter",
"mean area",
"mean smoothness",
"mean compactness",
"mean concavity",
"mean concave points",
"mean symmetry",
"mean fractal dimension",
"radius error",
"texture error",
"perimeter error",
"area error",
"smoothness error",
"compactness error",
"concavity error",
"concave points error",
"symmetry error",
"fractal dimension error",
"worst radius",
"worst texture",
"worst perimeter",
"worst area",
"worst smoothness",
"worst compactness",
"worst concavity",
"worst concave points",
"worst symmetry",
"worst fractal dimension"
],
"target_columns": [
"target"
]
},
"training": {
"effective_params": {
"C": 1.0,
"average": false,
"class_weight": null,
"early_stopping": false,
"fit_intercept": true,
"loss": "hinge",
"max_iter": 1000,
"n_iter_no_change": 5,
"n_jobs": null,
"random_state": null,
"shuffle": true,
"tol": 0.001,
"validation_fraction": 0.1,
"verbose": 0,
"warm_start": false
},
"metrics": {
"accuracy": 0.9366197183098591,
"f1_weighted": 0.9371313021072852
}
},
"evaluation": {
"partition": "test",
"metrics": {
"accuracy": 0.9300699300699301,
"f1_weighted": 0.9307373660821936
}
},
"artifact_files": [
"model/model.joblib",
"predictions/predictions.csv",
"graphs/predictions.png",
"metrics/metrics.json",
"result.json"
],
"extras": {
"algorithm": {
"learned": {
"coef": [
[
-0.18053962884732988,
0.2638303945401105,
1.8792671083736858,
0.37719217181370945,
0.013925950532752382,
-0.3631162014003169,
-0.7634765545254448,
-0.5496835199325829,
0.09024142800327951,
0.1253784089163276,
-0.13107147965418123,
1.1873498053542626,
0.08795609298009602,
-1.5660423979700384,
0.027677807612292757,
0.09012537295302606,
0.21148740274875066,
0.010321926280691982,
0.08233969183890648,
0.036324726902603015,
-0.9383554739890508,
-0.6971062555657644,
1.0849907380669828,
-1.0964434756350507,
-0.14203747711406042,
-1.5599913438115385,
-2.2033229823446314,
-1.0886591578215497,
-0.37813000831549487,
-0.029769705335095237
]
],
"intercept": [
1.4166691802086187
],
"classes": [
0,
1
],
"n_iter": 38,
"n_features_in": 30,
"t": 16189.0
},
"warnings": [
{
"category": "FutureWarning",
"count": 1
}
],
"data": {
"row_count": 569,
"column_count": 33,
"feature_count": 30,
"file_format": "csv"
},
"runtime": {
"captured_at_utc": "2026-11-30T16:14:01.637736+00:00",
"python": {
"version": "3.12.16",
"implementation": "CPython"
},
"packages": {
"scikit-learn": "1.9.1",
"numpy": "2.5.4",
"pandas": "3.0.6",
"scipy": "1.18.1",
"pydantic": "2.14.1",
"joblib": "1.6.0",
"matplotlib": "3.11.2",
"azure-servicebus": "7.14.3",
"parallelmodel": "1.0.0"
},
"environment": {
"os": "Linux",
"os_release": "6.6.159.1-2.azl3",
"architecture": "x86_64",
"region": "uk1"
}
},
"execution": {
"execution_name": "[REDACTED]",
"job_name": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replica_name": "[REDACTED]",
"process_id": 1
}
}
},
"build": {
"built_at_utc": null,
"source": "unavailable",
"image_tag": null
}
}
}

First extract response​

{
"start_time": "2026-11-30T16:16:12.941118+00:00",
"end_time": "2026-11-30T16:16:13.9737895+00:00",
"elapsed_milliseconds": 1032.66,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "e8dfb180-1f19-60f2-69f0-a4721ecb847f",
"uploaded_blob_id": "3262e442-dece-5895-b495-50de7a0d11b0",
"filename": "c8540e75-6859-2f75-0a4b-31a46efcf332.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 4898,
"upload_status_code": 200
}

Reproduce the operation​

dotnet test --filter "FullyQualifiedName~ParallelModel.Sdk.UnitTests.LinearModel.Run"

The filter runs the class theory; use the recorded scenario values above to identify the corresponding parameter set. For partitioned operations, one theory can submit multiple jobs. The redacted payload identifiers are not usable live credentials or blob IDs.