Skip to main content

TruncatedSVD

Text Decomposition standalone SDK operation. Source: 4.2.1.ML.Decomposition.Text.cs. Read the complete C# integration test and setup.

1 recorded job(s); 1 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
Fetch20Newsgroups / TrainTestSplit / SimpleImputer / TruncatedSVDtraincompletedResult recordedrun-0050

Representative execution​

Scenario: Fetch20Newsgroups / TrainTestSplit / SimpleImputer / TruncatedSVD; partition: train; observed status: completed. run-0050 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.

"MiniBatchNMF", "MiniBatchSparsePCA", "NMF", "PCA", "SparsePCA", "TruncatedSVD" };
"TruncatedSVD" => await SendTypedAsync(new TruncatedSVDJobSendRequestModel
ClassifierType = "TruncatedSVD",

Request​

{
"input": {
"input_blob_id": "0c8b3d5d-569b-2101-4ec6-f23e666c53c4",
"classifier_type": "TruncatedSVD",
"classifier_params": {
"n_components": 3,
"algorithm": "randomized"
},
"text_column": "text",
"file_format": "csv",
"vectorizer_params": {
"ngram_range": [
1,
2
],
"max_features": 120,
"min_df": 1
},
"evaluation": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true
},
"generate_graphs": true
},
"output": {
"name": "Fetch20Newsgroups-TrainTestSplit-SimpleImputer-TruncatedSVD.zip",
"description": "Decomposition integration test using the cached imputed text training partition",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"decomposition",
"text",
"Fetch20Newsgroups",
"TruncatedSVD"
]
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-11-29T12:57:26.7909812+00:00",
"end_time": "2026-11-29T12:57:26.8926963+00:00",
"elapsed_milliseconds": 101.71,
"status": "published",
"job_id": "c6465ccf-3c02-a191-88ab-984f906b6d84",
"topic": "pm.topic.ml.decomposition",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "c6465ccf-3c02-a191-88ab-984f906b6d84",
"json": {
"job_id": "c6465ccf-3c02-a191-88ab-984f906b6d84",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"input_blob_id": "0c8b3d5d-569b-2101-4ec6-f23e666c53c4",
"input_encryption_key": "[REDACTED]",
"classifier_type": "TruncatedSVD",
"classifier_params": {
"n_components": 3,
"algorithm": "randomized"
},
"text_column": "text",
"file_format": "csv",
"vectorizer_params": {
"ngram_range": [
1,
2
],
"max_features": 120,
"min_df": 1
}
},
"request_timeout_seconds": 300,
"output": {
"name": "Fetch20Newsgroups-TrainTestSplit-SimpleImputer-TruncatedSVD.zip",
"description": "Decomposition integration test using the cached imputed text training partition",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"decomposition",
"text",
"Fetch20Newsgroups",
"TruncatedSVD"
],
"encryption_key": "[REDACTED]"
},
"evaluation": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true
},
"generate_graphs": true
},
"topic": "pm.topic.ml.decomposition",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-11-29T12:58:27.2934865+00:00",
"end_time": "2026-11-29T12:58:27.9226914+00:00",
"elapsed_milliseconds": 629.2,
"job_id": "c6465ccf-3c02-a191-88ab-984f906b6d84",
"status": "completed",
"topic": "pm.topic.ml.decomposition",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"job_id": "c6465ccf-3c02-a191-88ab-984f906b6d84",
"execution": {
"execution_name": "[REDACTED]",
"job_name": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replica_name": "[REDACTED]",
"process_id": 1
}
},
"classifier_type": "TruncatedSVD",
"stats": {
"row_count": 8485,
"column_count": 4,
"feature_count": 120,
"training_row_count": 6788,
"test_row_count": 1697,
"feature_columns": [
"text"
],
"target_columns": [],
"file_format": "csv",
"task_type": "text_decomposition",
"metrics": {
"output_components": 3,
"sparse_nonzero_feature_values": 239889,
"component_variances": [
0.03257240316335859,
0.01909319467509387,
0.016311567065285856
],
"fit_scope": "training",
"explained_variance_ratio": [
0.04615812428489288,
0.027187661016864945,
0.02315560939221569
],
"explained_variance_ratio_sum": 0.09650139469397352
}
},
"effective_params": {
"decomposition": {
"n_components": 3,
"algorithm": "randomized",
"n_iter": 5,
"random_state": 42
},
"vectorizer": {
"lowercase": true,
"stop_words": null,
"ngram_range": [
1,
2
],
"max_features": 120,
"min_df": 1,
"max_df": 1.0,
"sublinear_tf": true,
"norm": "l2"
}
},
"learned": {
"text_feature_count": 120,
"component_count": 3,
"has_vocabulary_component_weights": true,
"component_values_file": "predictions.csv",
"vocabulary_weights_file": "components.csv",
"feature_matrix_file": "features.npz",
"reusable_text_vectorizer": "model.joblib"
},
"warnings": [],
"runtime": {
"captured_at_utc": "2026-11-29T12:58:06.752540+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-decomposition-output.zip",
"artifact_files": [
"model.joblib",
"predictions.csv",
"components.csv",
"features.npz",
"features.csv",
"feature_names.csv",
"documents.csv",
"result.json",
"graphs/component_projection.png",
"graphs/explained_variance.png"
]
}

First extract response​

{
"start_time": "2026-11-29T12:58:51.7774538+00:00",
"end_time": "2026-11-29T12:58:53.0461663+00:00",
"elapsed_milliseconds": 1268.7,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "f63538cf-7b98-9c89-424f-85b569752249",
"uploaded_blob_id": "0135a64f-7da6-a151-1f72-f53c218b5220",
"filename": "13ba4b42-e79b-69f0-b035-0b8ce4e4b017.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 2753,
"upload_status_code": 200
}

Logs​

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

Reproduce the operation​

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