Skip to main content

TfidfTransformer

Text Feature Extraction standalone SDK operation. Source: 4.1.1.ML.FeatureExtraction.Text.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 / TfidfTransformerwhole runerrorFailed or cancelledrun-0251

Representative execution​

Scenario: Fetch20Newsgroups / TfidfTransformer; partition: whole run; observed status: error. run-0251 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.

["CountVectorizer", "HashingVectorizer", "TfidfTransformer", "TfidfVectorizer"];
"TfidfTransformer" => await SendTypedAsync(new TfidfTransformerJobSendRequestModel
ClassifierType = "TfidfTransformer",

Request​

{
"input": {
"input_blob_id": "0c8b3d5d-569b-2101-4ec6-f23e666c53c4",
"classifier_type": "TfidfTransformer",
"classifier_params": {
"norm": "l2",
"use_idf": true,
"count_params": {
"ngram_range": [
1,
2
]
}
},
"text_column": "text",
"file_format": "csv",
"evaluation": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true
},
"generate_graphs": true
},
"output": {
"name": "Fetch20Newsgroups-TfidfTransformer.zip",
"description": "Feature extraction integration test using cached imputed training text",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"text",
"feature-extraction",
"Fetch20Newsgroups",
"TfidfTransformer"
]
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-11-29T18:56:09.0729055+00:00",
"end_time": "2026-11-29T18:56:09.1598002+00:00",
"elapsed_milliseconds": 86.89,
"status": "published",
"job_id": "c54420d5-4188-be01-e27a-59a349eef6c4",
"topic": "pm.topic.ml.featureextraction",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "c54420d5-4188-be01-e27a-59a349eef6c4",
"json": {
"job_id": "c54420d5-4188-be01-e27a-59a349eef6c4",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"input_blob_id": "0c8b3d5d-569b-2101-4ec6-f23e666c53c4",
"input_encryption_key": "[REDACTED]",
"classifier_type": "TfidfTransformer",
"classifier_params": {
"norm": "l2",
"use_idf": true,
"count_params": {
"ngram_range": [
1,
2
]
}
},
"text_column": "text",
"file_format": "csv"
},
"request_timeout_seconds": 300,
"output": {
"name": "Fetch20Newsgroups-TfidfTransformer.zip",
"description": "Feature extraction integration test using cached imputed training text",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"text",
"feature-extraction",
"Fetch20Newsgroups",
"TfidfTransformer"
],
"encryption_key": "[REDACTED]"
},
"evaluation": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true
},
"generate_graphs": true
},
"topic": "pm.topic.ml.featureextraction",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-11-29T18:58:09.8479933+00:00",
"end_time": "2026-11-29T18:58:10.0633076+00:00",
"elapsed_milliseconds": 215.31,
"job_id": "c54420d5-4188-be01-e27a-59a349eef6c4",
"status": "error",
"topic": "pm.topic.ml.featureextraction",
"subscription": "cpu.0p5c.1gi",
"dead_letter_reason": "TextExtractionJobFailed",
"dead_letter_error_description": "Stage: uploading text-feature-extraction-output.zip. Error type: ApiError. Message: ParallelModel API request failed. HTTP: 413. HTTP reason: Request Entity Too Large. Method: POST. URL: https://api.parallelmodel.io/core/api/v1/shared/model/0092e982-80d0-a014-f4e5-efd5ad4b95a8/blob/upload. Hint: The upload exceeds the API or gateway body-size limit."
}

Logs​

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

Reproduce the operation​

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