This repository trains and evaluates a PyTorch deep neural network (DNN) for
binary classification of the HH -> bbWW process in Run 3 particle-physics
data. The complete workflow is documented in train.ipynb.
The reported metrics are evaluated on the weighted test sample using the trained multilayer perceptron (MLP):
| Metric | Score |
|---|---|
| ROC AUC | 0.9687 |
| Accuracy | 0.911 |
| Precision | 0.904 |
| Recall | 0.920 |
Training reached a best validation AUC of 0.9697. Early stopping stopped training after 16 epochs; the run took approximately 2,015 seconds.
The loss curves show the weighted training and validation loss over the training epochs.
The ROC curve summarizes the signal/background separation across score thresholds. The measured test-sample AUC is 0.9687.
The AUC history tracks validation performance during training.
The confusion matrix shows the weighted classification counts at the selected decision threshold.
The score distributions illustrate the separation between the two classes.
The saved run uses the following configuration (also available in
outputs/config.json):
- Model: MLP with hidden layers
256 -> 128 -> 64 - Input features: 64
- Dropout: 0.1
- Learning rate: 0.001
- Weight decay: 0.0001
- Batch size: 2,048
- Maximum epochs: 20
- Early-stopping patience: 5 epochs
- Random seed: 42
The trained PyTorch checkpoint is available at
outputs/dnn_model.pt.
-
Install the Python dependencies used by the notebook:
pip install numpy torch seaborn mplhep onnxmltools onnxruntime \ scikit-learn pandas matplotlib pyarrow -
Open
train.ipynbin Jupyter or VS Code. -
Update the input parquet path in the data-loading cell for your environment.
-
Run the notebook from top to bottom. Models, configuration, and figures are written to
outputs/.
The notebook expects a parquet dataset containing the input features, binary labels, and event weights. The original training run used 6,217,345 samples and 72 columns before feature selection.
.
├── train.ipynb
├── outputs/
│ ├── config.json
│ ├── dnn_model.pt
│ ├── dnn_auc_curve.png
│ ├── dnn_confusion_matrix.png
│ ├── dnn_loss_curve.png
│ ├── dnn_roc_curve.png
│ ├── dnn_score_dist.png
│ └── correlation_matrix_inputs.png
└── LICENSE
The input-feature correlation matrix used during data inspection is included for reference:





