HT
HerbDev Application Rescue
Neural-network experiment

Multilayer Perceptron (MLP)

Dense feed-forward network for nonlinear relationships in tabular features. This proof of concept shows not only the final model, but the optimization path used to get there.

What the experiment is designed to show

A useful model-development engagement starts with evidence. This repository establishes a baseline, records its behavior, makes one documented optimization, reruns the model, and preserves the results so the decision can be explained and reproduced.

Baseline run

Validation Accuracy0.65
Test Accuracy0.5875
Train Seconds0.1277

Optimization decision

Increase representation capacity and train longer at a lower learning rate after the baseline underfit the nonlinear boundary.

Optimized run

Validation Accuracy0.95
Test Accuracy0.9625
Train Seconds0.49875

How to read the evidence

Baseline

The baseline is the starting model. It establishes what the simplest defensible approach can do before optimization.

Validation result

Validation data is held out from training and used to compare decisions without tuning against the final test set.

Test result

The test score is the final check on untouched data. It estimates whether the improvement generalizes beyond examples used to guide development.

Training time

Training seconds show the compute tradeoff in this small experiment. Production cost also depends on data volume, hardware, model size, monitoring, and retraining frequency.

Important: These synthetic datasets make the engineering process reproducible; their scores are not claims about performance on a client's real data.

Training evidence

Multilayer Perceptron (MLP) baseline versus optimized training loss

The 10-phase workflow

1–2. Define and prepare

Set the objective, success metric, data assumptions, deterministic split, and reproducibility seed.

3–4. Baseline and diagnose

Train a modest reference model and inspect loss, validation behavior, architecture capacity, and failure mode.

5–7. Optimize and compare

Choose a controlled change for a documented reason, retrain, and compare against held-out validation data.

8–10. Test, preserve, translate

Run untouched testing, generate evidence artifacts, document limitations, and identify production implications.

What changes with real client data?

The synthetic dataset is replaced by governed source data. The same workflow expands to include leakage checks, stronger domain baselines, experiment tracking, class-imbalance strategy, model registry/versioning, appropriate explainability, acceptance thresholds, drift monitoring, security controls, deployment, and rollback.

Need to improve an existing model?

A productive first review focuses on the current baseline, data quality, error patterns, operational constraints, and the metric that matters to the business. That is usually more informative than immediately increasing model size or compute.