Skip to main content

SparseRandomProjection

Random Projection standalone SDK operation. Source: 7.1.ML.RandomProjection.cs. Read the complete C# integration test and setup.

22 recorded job(s); 22 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 / SparseRandomProjectionwhole runcompletedResult recordedrun-1099
LoadBreastCancer-TrainTestSplit-SimpleImputer-KBinsDiscretizer / SparseRandomProjectionwhole runcompletedResult recordedrun-1101
LoadBreastCancer-TrainTestSplit-SimpleImputer-QuantileTransformer / SparseRandomProjectionwhole runcompletedResult recordedrun-1103
LoadBreastCancer-TrainTestSplit-SimpleImputer-StandardScaler / SparseRandomProjectionwhole runcompletedResult recordedrun-1105
LoadBreastCancer-TrainTestSplit-SimpleImputer-normalize / SparseRandomProjectionwhole runcompletedResult recordedrun-1107
LoadDiabetes-TrainTestSplit-SimpleImputer-KBinsDiscretizer / SparseRandomProjectionwhole runcompletedResult recordedrun-1109
LoadDiabetes-TrainTestSplit-SimpleImputer-QuantileTransformer / SparseRandomProjectionwhole runcompletedResult recordedrun-1111
LoadDiabetes-TrainTestSplit-SimpleImputer-StandardScaler / SparseRandomProjectionwhole runcompletedResult recordedrun-1113
LoadDiabetes-TrainTestSplit-SimpleImputer-normalize / SparseRandomProjectionwhole runcompletedResult recordedrun-1115
LoadWine-TrainTestSplit-SimpleImputer-FunctionTransformer / SparseRandomProjectionwhole runcompletedResult recordedrun-1117
LoadWine-TrainTestSplit-SimpleImputer-KBinsDiscretizer / SparseRandomProjectionwhole runcompletedResult recordedrun-1119
LoadWine-TrainTestSplit-SimpleImputer-QuantileTransformer / SparseRandomProjectionwhole runcompletedResult recordedrun-1121
LoadWine-TrainTestSplit-SimpleImputer-StandardScaler / SparseRandomProjectionwhole runcompletedResult recordedrun-1123
LoadWine-TrainTestSplit-SimpleImputer-normalize / SparseRandomProjectionwhole runcompletedResult recordedrun-1125
MakeClassification-TrainTestSplit-SimpleImputer-KBinsDiscretizer / SparseRandomProjectionwhole runcompletedResult recordedrun-1127
MakeClassification-TrainTestSplit-SimpleImputer-QuantileTransformer / SparseRandomProjectionwhole runcompletedResult recordedrun-1129
MakeClassification-TrainTestSplit-SimpleImputer-StandardScaler / SparseRandomProjectionwhole runcompletedResult recordedrun-1131
MakeClassification-TrainTestSplit-SimpleImputer-normalize / SparseRandomProjectionwhole runcompletedResult recordedrun-1133
MakeRegression-TrainTestSplit-SimpleImputer-KBinsDiscretizer / SparseRandomProjectionwhole runcompletedResult recordedrun-1135
MakeRegression-TrainTestSplit-SimpleImputer-QuantileTransformer / SparseRandomProjectionwhole runcompletedResult recordedrun-1137
MakeRegression-TrainTestSplit-SimpleImputer-StandardScaler / SparseRandomProjectionwhole runcompletedResult recordedrun-1139
MakeRegression-TrainTestSplit-SimpleImputer-normalize / SparseRandomProjectionwhole runcompletedResult recordedrun-1141

Representative execution​

Scenario: LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer / SparseRandomProjection; partition: whole run; observed status: completed. run-1099 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.

private static readonly string[] Algorithms = ["GaussianRandomProjection", "SparseRandomProjection"];
"SparseRandomProjection" => await SendTypedAsync(new SparseRandomProjectionJobSendRequestModel
ClassifierType = "SparseRandomProjection",

Request​

{
"input": {
"input_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"classifier_type": "SparseRandomProjection",
"classifier_params": {
"n_components": 8,
"eps": 0.5,
"density": "auto",
"dense_output": false,
"random_state": 42
},
"data_type": "numeric",
"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",
"evaluation": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true
},
"generate_graphs": true
},
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-SparseRandomProjection.zip",
"description": "RandomProjection integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"random-projection",
"LoadBreastCancer",
"FunctionTransformer",
"SparseRandomProjection"
]
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-12-01T12:37:12.294815+00:00",
"end_time": "2026-12-01T12:37:12.3662705+00:00",
"elapsed_milliseconds": 71.45,
"status": "published",
"job_id": "b53ec6fe-5f67-4741-6d07-a14eb929f0b4",
"topic": "pm.topic.ml.randomprojection",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "b53ec6fe-5f67-4741-6d07-a14eb929f0b4",
"json": {
"job_id": "b53ec6fe-5f67-4741-6d07-a14eb929f0b4",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"input_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"input_encryption_key": "[REDACTED]",
"classifier_type": "SparseRandomProjection",
"classifier_params": {
"n_components": 8,
"eps": 0.5,
"density": "auto",
"dense_output": false,
"random_state": 42
},
"data_type": "numeric",
"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-SparseRandomProjection.zip",
"description": "RandomProjection integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"random-projection",
"LoadBreastCancer",
"FunctionTransformer",
"SparseRandomProjection"
],
"encryption_key": "[REDACTED]"
},
"evaluation": {
"test_size": 0.2,
"random_state": 42,
"shuffle": true
},
"generate_graphs": true
},
"topic": "pm.topic.ml.randomprojection",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-12-01T12:38:12.692287+00:00",
"end_time": "2026-12-01T12:38:13.1607622+00:00",
"elapsed_milliseconds": 468.47,
"job_id": "b53ec6fe-5f67-4741-6d07-a14eb929f0b4",
"status": "completed",
"topic": "pm.topic.ml.randomprojection",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"jobId": "b53ec6fe-5f67-4741-6d07-a14eb929f0b4",
"execution": {
"executionName": "[REDACTED]",
"jobName": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replicaName": "[REDACTED]",
"processId": 1
}
},
"classifier_type": "SparseRandomProjection",
"stats": {
"row_count": 426,
"column_count": 33,
"feature_count": 30,
"training_row_count": 340,
"test_row_count": 86,
"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": [],
"file_format": "csv",
"task_type": "tabular_random_projection",
"metrics": {
"sampled_distance_pairs": 780,
"mean_relative_distance_error": 0.2129031030614587,
"max_relative_distance_error": 0.7175850258774213,
"fraction_within_eps": 0.9564102564102565,
"input_dimensions": 30,
"output_dimensions": 8,
"projection_ratio": 0.26666666666666666,
"johnson_lindenstrauss_min_dim": 279,
"jl_eps": 0.5,
"meets_jl_sufficient_bound": false,
"fit_scope": "training",
"output_density": 1.0
}
},
"effective_params": {
"projection": {
"n_components": 8,
"eps": 0.5,
"compute_inverse_components": false,
"random_state": 42,
"density": "auto",
"dense_output": false
},
"data_type": "numeric"
},
"learned": {
"input_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"
],
"output_columns": [
"sparserandomprojection0",
"sparserandomprojection1",
"sparserandomprojection2",
"sparserandomprojection3",
"sparserandomprojection4",
"sparserandomprojection5",
"sparserandomprojection6",
"sparserandomprojection7"
],
"transformed_values_file": "projected.csv",
"compatibility_predictions_file": "predictions.csv",
"reusable_fitted_projector": "model.joblib",
"components_shape": [
8,
30
],
"random_matrix_stored_in": "model.joblib"
},
"warnings": [],
"runtime": {
"captured_at_utc": "2026-12-01T12:37:43.476400+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-random-projection-output.zip",
"artifact_files": [
"model.joblib",
"predictions.csv",
"projected.csv",
"feature_names.csv",
"row_partitions.csv",
"result.json",
"graphs/distance_preservation.png"
]
}

First extract response​

{
"start_time": "2026-12-01T12:38:22.3775596+00:00",
"end_time": "2026-12-01T12:38:23.7934427+00:00",
"elapsed_milliseconds": 1415.86,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "ceb61c4a-76c5-d710-bb60-b3093b4841d5",
"uploaded_blob_id": "ff5edb21-6b9d-24df-e2d0-0c91c2ba994c",
"filename": "c7c39c4d-f1a7-775a-9cbb-f5a55bad9fd8.png",
"source_path": "graphs/distance_preservation.png",
"source_format": "png",
"size_bytes": 107807,
"upload_status_code": 200
}

Logs​

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

Reproduce the operation​

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