Skip to main content

FunctionTransformer

Numerical Preprocessing standalone SDK operation. Source: 4.3.1.2.ML.Preprocessing.Numerical.cs. Read the complete C# integration test and setup.

12 recorded job(s); 12 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 / IterativeImputer / FunctionTransformertestcompletedResult recordedrun-0946
LoadBreastCancer / TrainTestSplit / IterativeImputer / FunctionTransformertraincompletedResult recordedrun-0947
LoadBreastCancer / TrainTestSplit / KNNImputer / FunctionTransformertestcompletedResult recordedrun-0958
LoadBreastCancer / TrainTestSplit / KNNImputer / FunctionTransformertraincompletedResult recordedrun-0959
LoadBreastCancer / TrainTestSplit / SimpleImputer / FunctionTransformertestcompletedResult recordedrun-0970
LoadBreastCancer / TrainTestSplit / SimpleImputer / FunctionTransformertraincompletedResult recordedrun-0971
LoadWine / TrainTestSplit / IterativeImputer / FunctionTransformertestcompletedResult recordedrun-1006
LoadWine / TrainTestSplit / IterativeImputer / FunctionTransformertraincompletedResult recordedrun-1007
LoadWine / TrainTestSplit / KNNImputer / FunctionTransformertestcompletedResult recordedrun-1018
LoadWine / TrainTestSplit / KNNImputer / FunctionTransformertraincompletedResult recordedrun-1019
LoadWine / TrainTestSplit / SimpleImputer / FunctionTransformertestcompletedResult recordedrun-1030
LoadWine / TrainTestSplit / SimpleImputer / FunctionTransformertraincompletedResult recordedrun-1031

Representative execution​

Scenario: LoadBreastCancer / TrainTestSplit / IterativeImputer / FunctionTransformer; partition: test; observed status: completed. run-0946 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 = { "FunctionTransformer", "KBinsDiscretizer", "label_binarize",
"FunctionTransformer" when trainInput.NonNegativeColumns.Count == 0 =>
case "FunctionTransformer":
PreprocessorType = "FunctionTransformer",

Request​

{
"input": {
"input_blob_id": "8924d463-a53c-b7ed-2636-78a1e388e97d",
"preprocessor_type": "FunctionTransformer",
"preprocessor_params": {
"func": "log1p",
"inverse_func": "expm1"
},
"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",
"target_column": "target",
"keep_other_columns": true,
"generate_graphs": false
},
"output": {
"name": "preprocessing-FunctionTransformer-imputed.zip",
"description": "Preprocessing FunctionTransformer on Impute artifact imputed.csv",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"preprocessing",
"impute",
"integration-tests",
"FunctionTransformer"
]
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-11-29T15:53:14.3056426+00:00",
"end_time": "2026-11-29T15:53:14.4009239+00:00",
"elapsed_milliseconds": 95.28,
"status": "published",
"job_id": "6d4d8b59-2cbe-8978-e282-795ee6d4e366",
"topic": "pm.topic.ml.preprocessing",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "6d4d8b59-2cbe-8978-e282-795ee6d4e366",
"json": {
"job_id": "6d4d8b59-2cbe-8978-e282-795ee6d4e366",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"input_blob_id": "8924d463-a53c-b7ed-2636-78a1e388e97d",
"input_encryption_key": "[REDACTED]",
"preprocessor_type": "FunctionTransformer",
"preprocessor_params": {
"func": "log1p",
"inverse_func": "expm1"
},
"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": "preprocessing-FunctionTransformer-imputed.zip",
"description": "Preprocessing FunctionTransformer on Impute artifact imputed.csv",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"preprocessing",
"impute",
"integration-tests",
"FunctionTransformer"
],
"encryption_key": "[REDACTED]"
},
"target_column": "target",
"keep_other_columns": true,
"generate_graphs": false
},
"topic": "pm.topic.ml.preprocessing",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-11-29T15:54:14.7343243+00:00",
"end_time": "2026-11-29T15:54:15.5775254+00:00",
"elapsed_milliseconds": 843.19,
"job_id": "6d4d8b59-2cbe-8978-e282-795ee6d4e366",
"status": "completed",
"topic": "pm.topic.ml.preprocessing",
"subscription": "cpu.0p5c.1gi",
"dead_letter_reason": null,
"dead_letter_error_description": null
}

Result response​

{
"jobId": "6d4d8b59-2cbe-8978-e282-795ee6d4e366",
"execution": {
"executionName": "[REDACTED]",
"jobName": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replicaName": "[REDACTED]",
"processId": 1
}
},
"preprocessor_type": "FunctionTransformer",
"operation_kind": "transformer",
"stats": {
"row_count": 143,
"column_count": 33,
"feature_count": 30,
"training_row_count": 143,
"test_row_count": 0,
"output_feature_count": 30,
"output_column_count": 33,
"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"
],
"output_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"
],
"retained_columns": [
"row_index",
"partition",
"target"
],
"target_column": "target",
"file_format": "csv",
"task_type": "preprocessing",
"sparse_output": false,
"cross_fitted_training": false
},
"effective_params": {
"func": "log1p",
"inverse_func": "expm1",
"validate": false,
"accept_sparse": false,
"check_inverse": true,
"feature_names_out": "one-to-one"
},
"learned": {
"n_features_in": 30
},
"warnings": [],
"runtime": {
"captured_at_utc": "2026-11-29T15:53:56.290203+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": "preprocessing-output.zip",
"artifact_files": [
"model.joblib",
"transformed.csv",
"partitions.csv",
"result.json"
]
}

First extract response​

{
"start_time": "2026-11-29T15:54:18.8413582+00:00",
"end_time": "2026-11-29T15:54:23.9821779+00:00",
"elapsed_milliseconds": 5140.75,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "c98dc7f0-9f67-60e9-30bf-69c9739210f3",
"uploaded_blob_id": "a3484cac-bf32-f1f7-8ac6-7f457604ceee",
"filename": "448fe281-da9d-d464-665e-5b719810e8a6.joblib",
"source_path": "model.joblib",
"source_format": "joblib",
"size_bytes": 1094,
"upload_status_code": 200
}

Logs​

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

Reproduce the operation​

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