Skip to main content

AffinityPropagation

Clustering standalone SDK operation. Source: 6.11.ML.Cluster.cs. Read the complete C# integration test and setup.

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

caution

No successful result is present for this operation in the standalone output archive. The following recorded request/status is diagnostic evidence, not a working example.

Recorded scenarios​

Recorded scenarioPartitionLast statusEvidenceJSON trace
Fetch20Newsgroups-TrainTestSplit-SimpleImputer-label_binarize / AffinityPropagationwhole runerrorFailed or cancelledrun-0001

Representative execution​

Scenario: Fetch20Newsgroups-TrainTestSplit-SimpleImputer-label_binarize / AffinityPropagation; partition: whole run; observed status: error. run-0001 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.

"AffinityPropagation", "AgglomerativeClustering", "Birch", "BisectingKMeans",
"AffinityPropagation" => await SendTypedAsync(new AffinityPropagationJobSendRequestModel
ClassifierType = "AffinityPropagation",

Request​

{
"input": {
"train_blob_id": "fcabdac6-7277-9e2a-6d4d-18a32fa49fad",
"test_blob_id": "a6239f87-b23d-e3f4-81ae-37d80b791dd1",
"classifier_type": "AffinityPropagation",
"classifier_params": {
"damping": 0.75,
"max_iter": 200
},
"text_column": "text",
"file_format": "csv",
"vectorizer_params": {
"ngram_range": [
1,
2
],
"min_df": 1,
"max_features": 500
},
"svd_components": 8,
"generate_graphs": true
},
"output": {
"name": "Fetch20Newsgroups-TrainTestSplit-SimpleImputer-label_binarize-AffinityPropagation.zip",
"description": "Cluster integration test using cached text preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"cluster",
"Fetch20Newsgroups",
"TrainTestSplit",
"SimpleImputer",
"label_binarize",
"AffinityPropagation"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-12-01T11:10:26.9590731+00:00",
"end_time": "2026-12-01T11:10:30.8472964+00:00",
"elapsed_milliseconds": 3888.17,
"status": "published",
"job_id": "fadd52c6-8a76-e39f-2398-864310e4b420",
"topic": "pm.topic.ml.cluster",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "fadd52c6-8a76-e39f-2398-864310e4b420",
"json": {
"job_id": "fadd52c6-8a76-e39f-2398-864310e4b420",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"train_blob_id": "fcabdac6-7277-9e2a-6d4d-18a32fa49fad",
"train_encryption_key": "[REDACTED]",
"test_blob_id": "a6239f87-b23d-e3f4-81ae-37d80b791dd1",
"test_encryption_key": "[REDACTED]",
"classifier_type": "AffinityPropagation",
"classifier_params": {
"damping": 0.75,
"max_iter": 200
},
"text_column": "text",
"file_format": "csv",
"vectorizer_params": {
"ngram_range": [
1,
2
],
"min_df": 1,
"max_features": 500
},
"svd_components": 8
},
"request_timeout_seconds": 300,
"output": {
"name": "Fetch20Newsgroups-TrainTestSplit-SimpleImputer-label_binarize-AffinityPropagation.zip",
"description": "Cluster integration test using cached text preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"cluster",
"Fetch20Newsgroups",
"TrainTestSplit",
"SimpleImputer",
"label_binarize",
"AffinityPropagation"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
},
"evaluation": null,
"generate_graphs": true
},
"topic": "pm.topic.ml.cluster",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-12-01T11:11:35.8665695+00:00",
"end_time": "2026-12-01T11:11:36.4442085+00:00",
"elapsed_milliseconds": 577.63,
"job_id": "fadd52c6-8a76-e39f-2398-864310e4b420",
"status": "error",
"topic": "pm.topic.ml.cluster",
"subscription": "cpu.0p5c.1gi",
"dead_letter_reason": "TextClusteringJobFailed",
"dead_letter_error_description": "Stage: reading training documents. Error type: ValueError"
}

Logs​

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

Reproduce the operation​

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