Skip to main content

Fetch20Newsgroups

Datasets standalone SDK operation. Source: 1.ML.Dataset.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
Fetch20Newsgroupswhole runcompletedResult recordedrun-0009

Representative execution​

Scenario: Fetch20Newsgroups; partition: whole run; observed status: completed. run-0009 contains all recorded numbered JSON events for this job.

The standalone dataset run has no saved request JSON. The original strongly typed request definitions are in the linked C# source.

Send response​

{
"start_time": "2026-11-28T13:42:18.5081145+00:00",
"end_time": "2026-11-28T13:42:18.583309+00:00",
"elapsed_milliseconds": 75.19,
"status": "published",
"job_id": "9c3da9bc-580b-61d5-8a3e-a7ad7d012491",
"topic": "pm.topic.ml.datasets",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "9c3da9bc-580b-61d5-8a3e-a7ad7d012491",
"json": {
"job_id": "9c3da9bc-580b-61d5-8a3e-a7ad7d012491",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"algorithm_type": "fetch_20newsgroups",
"package_type": "scikit-learn",
"algorithm_params": {
"delay": 1,
"n_retries": 1,
"remove": [
"headers",
"footers",
"quotes"
],
"subset": "train"
},
"allow_network": true
},
"request_timeout_seconds": 1800,
"output": {
"name": "datasets-fetch_20newsgroups.zip",
"description": "scikit-learn datasets operation: fetch_20newsgroups",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"datasets",
"fetch_20newsgroups"
],
"encryption_key": "[REDACTED]"
}
},
"topic": "pm.topic.ml.datasets",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-11-28T13:44:19.3249529+00:00",
"end_time": "2026-11-28T13:44:19.6093563+00:00",
"elapsed_milliseconds": 284.4,
"job_id": "9c3da9bc-580b-61d5-8a3e-a7ad7d012491",
"status": "completed",
"topic": "pm.topic.ml.datasets",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"jobId": "9c3da9bc-580b-61d5-8a3e-a7ad7d012491",
"execution": {
"executionName": "[REDACTED]",
"jobName": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replicaName": "[REDACTED]",
"processId": 1
}
},
"package_type": "scikit-learn",
"algorithm_type": "fetch_20newsgroups",
"stats": {
"row_count": 11314,
"column_count": 2,
"feature_count": 1,
"target_count": 1,
"feature_columns": [
"text"
],
"target_columns": [
"target"
],
"missing_cell_count": 0,
"file_format": "csv",
"task_type": "datasets",
"source_kind": "network"
},
"effective_params": {
"subset": "train",
"remove": [
"headers",
"footers",
"quotes"
],
"n_retries": 1,
"delay": 1.0,
"download_if_missing": true
},
"metadata": {
"dataset_name": "fetch_20newsgroups",
"sklearn_version": "1.9.1",
"description_excerpt": ".. _20newsgroups_dataset:\n\nThe 20 newsgroups text dataset\n------------------------------\n\nThe 20 newsgroups dataset comprises around 18000 newsgroups posts on\n20 topics split in two subsets: one for training (or development)\nand the other one for testing (or for performance evaluation). The split\nbetween the train and test set is based upon a messages posted before\nand after a specific date.\n\nThis module contains two loaders. The first one,\n:func:`sklearn.datasets.fetch_20newsgroups`,\nreturns a ",
"target_names": [
"alt.atheism",
"comp.graphics",
"comp.os.ms-windows.misc",
"comp.sys.ibm.pc.hardware",
"comp.sys.mac.hardware",
"comp.windows.x",
"misc.forsale",
"rec.autos",
"rec.motorcycles",
"rec.sport.baseball",
"rec.sport.hockey",
"sci.crypt",
"sci.electronics",
"sci.med",
"sci.space",
"soc.religion.christian",
"talk.politics.guns",
"talk.politics.mideast",
"talk.politics.misc",
"talk.religion.misc"
]
},
"warnings": [],
"runtime": {
"captured_at_utc": "2026-11-28T13:43:53.781944+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",
"torch": "2.15.0",
"torch-geometric": "2.8.1",
"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": "datasets-output.zip",
"artifact_files": [
"dataset.csv",
"result.json"
]
}

First extract response​

{
"start_time": "2026-11-28T13:44:22.8598055+00:00",
"end_time": "2026-11-28T13:44:27.5781706+00:00",
"elapsed_milliseconds": 4718.3,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "d789d451-3e15-602d-5f5a-b5a856120cc0",
"uploaded_blob_id": "0231c095-3d8a-d813-ec28-e625aafaefc2",
"filename": "ae4889d2-d88c-d009-062e-8af2994f6bf3.csv",
"source_path": "dataset.csv",
"source_format": "csv",
"size_bytes": 13883675,
"upload_status_code": 200
}

Logs​

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

Reproduce the operation​

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