Skip to main content

MLPClassifier

Neural Networks standalone SDK operation. Source: 6.9.ML.NeuralNetwork.cs. Read the complete C# integration test and setup.

14 recorded job(s); 14 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 / MLPClassifierwhole runcompletedResult recordedrun-0792
LoadBreastCancer-TrainTestSplit-SimpleImputer-KBinsDiscretizer / MLPClassifierwhole runcompletedResult recordedrun-0793
LoadBreastCancer-TrainTestSplit-SimpleImputer-QuantileTransformer / MLPClassifierwhole runcompletedResult recordedrun-0794
LoadBreastCancer-TrainTestSplit-SimpleImputer-StandardScaler / MLPClassifierwhole runcompletedResult recordedrun-0795
LoadBreastCancer-TrainTestSplit-SimpleImputer-normalize / MLPClassifierwhole runcompletedResult recordedrun-0796
LoadWine-TrainTestSplit-SimpleImputer-FunctionTransformer / MLPClassifierwhole runcompletedResult recordedrun-0801
LoadWine-TrainTestSplit-SimpleImputer-KBinsDiscretizer / MLPClassifierwhole runcompletedResult recordedrun-0802
LoadWine-TrainTestSplit-SimpleImputer-QuantileTransformer / MLPClassifierwhole runcompletedResult recordedrun-0803
LoadWine-TrainTestSplit-SimpleImputer-StandardScaler / MLPClassifierwhole runcompletedResult recordedrun-0804
LoadWine-TrainTestSplit-SimpleImputer-normalize / MLPClassifierwhole runcompletedResult recordedrun-0805
MakeClassification-TrainTestSplit-SimpleImputer-KBinsDiscretizer / MLPClassifierwhole runcompletedResult recordedrun-0806
MakeClassification-TrainTestSplit-SimpleImputer-QuantileTransformer / MLPClassifierwhole runcompletedResult recordedrun-0807
MakeClassification-TrainTestSplit-SimpleImputer-StandardScaler / MLPClassifierwhole runcompletedResult recordedrun-0808
MakeClassification-TrainTestSplit-SimpleImputer-normalize / MLPClassifierwhole runcompletedResult recordedrun-0809

Representative execution​

Scenario: LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer / MLPClassifier; partition: whole run; observed status: completed. run-0792 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 = ["BernoulliRBM", "MLPClassifier", "MLPRegressor"];
Algorithms.Where(algorithm => algorithm == "MLPClassifier").ToArray(),
"MLPClassifier" => await SendTypedAsync(new MLPClassifierJobSendRequestModel
ClassifierType = "MLPClassifier",

Request​

{
"input": {
"train_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"test_blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"classifier_type": "MLPClassifier",
"classifier_params": {
"hidden_layer_sizes": [
100
],
"solver": "adam",
"max_iter": 500,
"random_state": 42
},
"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"
},
"output": {
"name": "LoadBreastCancer-TrainTestSplit-SimpleImputer-FunctionTransformer-MLPClassifier.zip",
"description": "NeuralNetwork integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"neural-network",
"LoadBreastCancer",
"FunctionTransformer",
"MLPClassifier"
],
"artifact_contract_version": "2.0"
},
"request_timeout_seconds": 300
}

Send response​

{
"start_time": "2026-12-01T01:03:12.266969+00:00",
"end_time": "2026-12-01T01:03:12.3309919+00:00",
"elapsed_milliseconds": 64.02,
"status": "published",
"job_id": "7acde25a-0888-59f6-d1fb-c3bf12d7e73d",
"topic": "pm.topic.ml.neuralnetwork",
"subscription": "cpu.0p5c.1gi",
"send_request_model": {
"job_id": "7acde25a-0888-59f6-d1fb-c3bf12d7e73d",
"json": {
"job_id": "7acde25a-0888-59f6-d1fb-c3bf12d7e73d",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"input": {
"train_blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"train_encryption_key": "[REDACTED]",
"test_blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"test_encryption_key": "[REDACTED]",
"classifier_type": "MLPClassifier",
"classifier_params": {
"hidden_layer_sizes": [
100
],
"solver": "adam",
"max_iter": 500,
"random_state": 42
},
"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-MLPClassifier.zip",
"description": "NeuralNetwork integration test using cached numerical preprocessing outputs",
"record_type": "Generic",
"access_tier": "Hot",
"tags": [
"neural-network",
"LoadBreastCancer",
"FunctionTransformer",
"MLPClassifier"
],
"encryption_key": "[REDACTED]",
"artifact_contract_version": "2.0"
},
"target_column": "target",
"evaluation": null
},
"topic": "pm.topic.ml.neuralnetwork",
"subscription": "cpu.0p5c.1gi"
}
}

Final recorded status​

{
"start_time": "2026-12-01T01:04:12.6609157+00:00",
"end_time": "2026-12-01T01:04:13.5998878+00:00",
"elapsed_milliseconds": 938.96,
"job_id": "7acde25a-0888-59f6-d1fb-c3bf12d7e73d",
"status": "completed",
"topic": "pm.topic.ml.neuralnetwork",
"subscription": "cpu.0p5c.1gi"
}

Result response​

{
"schema_version": "2.0",
"job_id": "7acde25a-0888-59f6-d1fb-c3bf12d7e73d",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"status": "succeeded",
"worker": {
"name": "neural-network",
"task_family": "classification",
"algorithm": "MLPClassifier"
},
"input": {
"mode": "prepared_train_test",
"partitions": {
"train": {
"blob_id": "6cd0072c-cacf-f966-963c-7dc144f9db7c",
"row_count": 426
},
"test": {
"blob_id": "608f8ac2-dcb0-3eb6-7fa1-4c76b6136d96",
"row_count": 143
}
},
"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": [
"target"
]
},
"training": {
"effective_params": {
"activation": "relu",
"alpha": 0.0001,
"batch_size": "auto",
"beta_1": 0.9,
"beta_2": 0.999,
"early_stopping": false,
"epsilon": 1e-08,
"hidden_layer_sizes": [
100
],
"learning_rate": "constant",
"learning_rate_init": 0.001,
"max_fun": 15000,
"max_iter": 500,
"momentum": 0.9,
"n_iter_no_change": 10,
"nesterovs_momentum": true,
"power_t": 0.5,
"random_state": 42,
"shuffle": true,
"solver": "adam",
"tol": 0.0001,
"validation_fraction": 0.1,
"verbose": false,
"warm_start": false
},
"metrics": {}
},
"evaluation": {
"partition": "test",
"metrics": {
"sample_count": 143,
"accuracy": 0.9440559440559441,
"f1_weighted": 0.9438254053638668,
"classes": [
0,
1
],
"confusion_matrix": [
[
48,
5
],
[
3,
87
]
]
}
},
"artifact_files": [
"model/model.joblib",
"predictions/predictions.csv",
"graphs/performance.png",
"graphs/performance.svg",
"graphs/confusion_matrix.png",
"graphs/confusion_matrix.svg",
"graphs/loss_curve.png",
"graphs/loss_curve.svg",
"graphs/network_weights.png",
"graphs/network_weights.svg",
"graphs/prediction_distribution.png",
"graphs/prediction_distribution.svg",
"result.json"
],
"extras": {
"algorithm": {
"learned": {
"n_features_in": 30,
"n_outputs": 1,
"n_layers": 3,
"n_iter": 426,
"loss": 0.16905570732827188,
"out_activation": "logistic",
"coefficient_shapes": [
[
30,
100
],
[
100,
1
]
],
"intercept_shapes": [
[
100
],
[
1
]
],
"loss_curve": [
1.8873923663789784,
1.4199854804485288,
1.0343027560489044,
0.7793884691728888,
0.6844149748505802,
0.700218312024522,
0.7414267599057733,
0.7605043823868162,
0.7489865237591797,
0.7179953646809556,
0.6828109375456505,
0.6591338995741693,
0.6527409012253341,
0.6530888651093861,
0.6473340759663085,
0.6378983235547521,
0.6305817598960424,
0.6282244277386869,
0.6299666945767419,
0.6250438033184136,
0.6168823816804653,
0.6112176726003906,
0.607060938250221,
0.6031473217468661,
0.5994967162175943,
0.5957641600158459,
0.5920985116893912,
0.5879311411637592,
0.5841810228430028,
0.5803486708503927,
0.5768004863146212,
0.5747596917493999,
0.5703625207474307,
0.5653963181125732,
0.5615012231855956,
0.5576924742354966,
0.5541075059586921,
0.5502288896945622,
0.54634986212427,
0.5424947197841304,
0.539028295522645,
0.5352120899056019,
0.5311308221233664,
0.5274498158500025,
0.5244167204477739,
0.5200567940691151,
0.5158652086167633,
0.5118628518133079,
0.5076551758409018,
0.5040965087625046,
0.5002983326734578,
0.49653178326482617,
0.4926855006783307,
0.4890042832069933,
0.48581460069841587,
0.48247637093020596,
0.47844560300402234,
0.4740612163331249,
0.4701256971911579,
0.4667174608094468,
0.4625790787080902,
0.45900592935884166,
0.45532631373137955,
0.452445753528615,
0.4478868687021379,
0.44421459659285745,
0.4408412860953202,
0.43687974455520934,
0.43408026166646474,
0.4308940549265018,
0.42784630312811694,
0.42378103161264213,
0.41993344462020515,
0.4169512698737077,
0.41369534443556577,
0.40995165724744437,
0.4065577618849916,
0.4037857386716689,
0.4000437324646175,
0.3980982632934914,
0.3980051498280137,
0.3935080112418456,
0.38727224296120705,
0.38899531684842026,
0.3848353521398122,
0.37996077094752273,
0.37776551800603886,
0.376890541466413,
0.37533372930321135,
0.36919744623673634,
0.36902152416221035,
0.36758486139223784,
0.36330663042092715,
0.36064995523817606,
0.3572476534684375,
0.35571567458053616,
0.35416883551212636,
0.351083802898058,
0.34864305703423576,
0.34689763065438883,
0.3442511394166478,
0.34668958172948033,
0.34458942417871724,
0.3404162211523438,
0.34249988158119893,
0.3366155696264609,
0.33426658628779043,
0.3338982068852113,
0.33106994410170615,
0.3287004988983012,
0.3327307826906205,
0.3290763872735853,
0.32345376830128003,
0.3228409089705552,
0.3205931661659357,
0.31906187540345854,
0.31757759347212666,
0.3162822736116729,
0.3147453093650564,
0.3130644122123137,
0.3114128916760547,
0.31160544693053194,
0.31096516144031744,
0.3078497840939598,
0.3067969370542943,
0.3049260839634685,
0.3044721239758033,
0.30282765324065464,
0.3008812877670698,
0.3041565807030365,
0.3042536567889545,
0.2980237753645552,
0.2977046486652193,
0.2979760819716537,
0.2947685382524614,
0.2952760315118986,
0.2970301870718867,
0.2931647410148596,
0.28946781839605845,
0.2935895199243368,
0.29211168249184594,
0.28728032093026873,
0.2878829067102101,
0.2889887807674711,
0.2851256771992473,
0.28604092331748565,
0.2841403559533356,
0.28260727425821563,
0.28142366301388544,
0.28064135939597185,
0.2831574846769892,
0.27961324704940616,
0.2782644045361818,
0.2794220726428921,
0.27580643443138764,
0.2784281726894977,
0.28032000361148,
0.2750069786673774,
0.2776845523484138,
0.277025557987705,
0.27119211237960217,
0.27638681191971093,
0.2728398939809048,
0.2708365571858462,
0.278913413229624,
0.272973781323214,
0.26862051304050194,
0.26749292733662994,
0.26600893885501126,
0.26693917534221406,
0.2646386327231507,
0.26441918048188245,
0.26532156752302116,
0.26485177390251335,
0.26192427696332365,
0.2616013802172421,
0.26088021371579495,
0.2599198543731851,
0.26035533457251037,
0.2586792293119445,
0.26239522365486795,
0.26471637391325786,
0.2588099026186364,
0.25632530361706063,
0.25915256364602074,
0.25803615634337324,
0.2564664911906651,
0.2582412702630599,
0.2559126082551614,
0.2546022058289131,
0.2561100867382898,
0.2551385047039104,
0.25128321295789896,
0.2507084816798389,
0.2512377251344441,
0.250271500127925,
0.248759046707565,
0.25049210208948586,
0.24961562106797824,
0.24702727120203324,
0.25136841544536564,
0.2527076057239995,
0.24700443745844744,
0.24563974625945365,
0.24535937661903173,
0.2448601218002903,
0.2443620900801578,
0.24340693919368223,
0.24271518697434627,
0.24394075944861554,
0.24300546496142364,
0.24240863184690822,
0.24198972874632238,
0.24005117055941017,
0.23968961074202763,
0.23915164037410006,
0.2391795595469275,
0.23889935482804514,
0.23835187349659662,
0.23759018702337437,
0.23794644379623597,
0.23661917020888495,
0.23566540444514744,
0.23517165304129264,
0.234784453137665,
0.23496444461382696,
0.23745876627165524,
0.23607849158915484,
0.23365383761458597,
0.23268324459234418,
0.233507147029935,
0.23129300360067703,
0.23554286970364469,
0.23085849094666397,
0.23254766198295534,
0.23787737932702738,
0.23199206875694167,
0.2316065352385744,
0.23315456795468525,
0.22847527236817347,
0.2283321482811321,
0.22735967550870542,
0.2283539845755921,
0.2257754320718984,
0.23012211522594028,
0.2303177475273682,
0.22519081185923348,
0.2266108486123274,
0.22546117779495817,
0.2237655769661177,
0.22915008679449816,
0.2246614559107202,
0.223053421946187,
0.22399858855573934,
0.22177012457622988,
0.22182476802541726,
0.22191972419828385,
0.22157935487298053,
0.22155047022859375,
0.2200113771157669,
0.2194160694542011,
0.21962772241873418,
0.2196901570277881,
0.22164889980407812,
0.22149144413199415,
0.21984265326282534,
0.21660092234996753,
0.2193409315314445,
0.21907889655566737,
0.21610264112155725,
0.21644545199569618,
0.216566072871856,
0.21688925125785924,
0.21482607762588787,
0.21538040812257395,
0.21531620105874716,
0.21505333563761994,
0.21895220111282915,
0.21606086245313164,
0.21256035501560022,
0.22186862651619343,
0.21910351831621297,
0.21373973337919983,
0.21316964042808387,
0.2112201977629932,
0.21052270519694036,
0.21060785598351783,
0.210231097849212,
0.21177517789578992,
0.21587518117688,
0.21019816574389644,
0.21525244503096805,
0.21231417440802672,
0.20683663285688617,
0.21145778830265266,
0.21045073254234162,
0.20706539660921955,
0.20689226940884095,
0.20656938025241056,
0.20621038764673263,
0.20526752533413745,
0.20463078712090108,
0.2040252968081841,
0.2045058914701586,
0.20479791756877383,
0.20361278910808814,
0.20384766456358033,
0.21395241446750318,
0.21509013429908924,
0.20427762350162382,
0.2063874086565683,
0.20292277943109546,
0.20088911529177406,
0.20125881349651617,
0.20162267259510916,
0.19982316708208836,
0.19998856327007944,
0.20067243462286427,
0.19888325826918185,
0.20216365178920673,
0.20756527364286695,
0.21325245409623741,
0.19651311814627173,
0.20842927582455253,
0.2170575068726021,
0.20107795672411344,
0.2157981926023666,
0.21769607423676843,
0.19947275780468823,
0.19586433417102922,
0.20479078625212796,
0.20259027546462627,
0.19613272145679578,
0.2059281352491121,
0.20479310256864583,
0.1923694469966685,
0.19839914381816953,
0.19787303595310096,
0.1940822912317576,
0.19493487836087406,
0.19214234263541474,
0.19297727931758316,
0.19557346353071783,
0.1923692474267105,
0.1911224313267542,
0.19094613259263332,
0.19435546618452743,
0.19223273477336844,
0.18952821653897525,
0.1909703652635261,
0.19037343708281534,
0.18835190902137924,
0.19355574680805374,
0.19712100259747747,
0.19052275419922288,
0.18830146725952732,
0.18728728846499895,
0.18929406014841357,
0.1928248368714796,
0.1898527693149456,
0.186053635406748,
0.18753356376293714,
0.18620690119832545,
0.18661951185722805,
0.19079324700963057,
0.18705651071314347,
0.1853532855863827,
0.18478924719468587,
0.18448780768232265,
0.18461448150110535,
0.18439697336654606,
0.18821027095306367,
0.19154630832300706,
0.18433165608465002,
0.18396458341026822,
0.18769438395601484,
0.18416353861161067,
0.18276515342360036,
0.18573611037172152,
0.1836555104761014,
0.18097696589877668,
0.18070174740978492,
0.18031858709478873,
0.18135092775838688,
0.18463909760336875,
0.18223467549224698,
0.17949802055375746,
0.18091926625073876,
0.18051938968964845,
0.1779819529655865,
0.17873733416244555,
0.18947351499099982,
0.18461878459770903,
0.17585820243442613,
0.18349537915828745,
0.18368140168003977,
0.1760730803983166,
0.18213088740606345,
0.1777138994230858,
0.17537926084541175,
0.180073783404557,
0.1766891227920181,
0.1768305427020251,
0.17844538303905602,
0.17446394413099572,
0.17361931643877554,
0.17385346230483958,
0.17338552343739436,
0.1728854804158925,
0.17367469229907512,
0.1718798501221963,
0.17391963003548097,
0.17579953218776043,
0.17828404965417233,
0.16832780770113093,
0.19244732013303273,
0.1867408805159756,
0.1691511479459386,
0.17851417776211087,
0.17462666241978714,
0.17190878711701227,
0.1727652328625551,
0.1702672327927327,
0.16876947827104974,
0.16925271084133522,
0.16905570732827188
],
"validation_scores": null,
"best_validation_score": null,
"classes": [
0,
1
],
"n_classes": 2
},
"warnings": [],
"data": {
"row_count": 569,
"column_count": 33,
"feature_count": 30,
"file_format": "csv"
},
"runtime": {
"captured_at_utc": "2026-12-01T01:03:44.254413+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"
}
},
"execution": {
"executionName": "[REDACTED]",
"jobName": "[REDACTED]",
"container": {
"hostname": "[REDACTED]",
"replicaName": "[REDACTED]",
"processId": 1
}
}
},
"build": {
"built_at_utc": null,
"source": "unavailable",
"image_tag": null
}
}
}

First extract response​

{
"start_time": "2026-12-01T01:04:36.1143733+00:00",
"end_time": "2026-12-01T01:04:37.3511722+00:00",
"elapsed_milliseconds": 1236.78,
"status": "uploaded",
"model_id": "0092e982-80d0-a014-f4e5-efd5ad4b95a8",
"source_blob_id": "621e59b1-9605-c9f2-b23f-b689d9e657fe",
"uploaded_blob_id": "5e26557f-33a7-f56b-ef4b-9cd355b6c62b",
"filename": "92721ecc-2f34-7add-c490-d8f12f7c9894.json",
"source_path": "result.json",
"source_format": "json",
"size_bytes": 17853,
"upload_status_code": 200
}

Logs​

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

Reproduce the operation​

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