Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNN for HH -> bbWW Run 3 Analysis

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.

Results at a glance

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.

Performance plots

Training curves

The loss curves show the weighted training and validation loss over the training epochs.

Training and validation loss

ROC performance

The ROC curve summarizes the signal/background separation across score thresholds. The measured test-sample AUC is 0.9687.

ROC curve

The AUC history tracks validation performance during training.

AUC curve

Classification diagnostics

The confusion matrix shows the weighted classification counts at the selected decision threshold.

Confusion matrix

The score distributions illustrate the separation between the two classes.

DNN score distributions

Model and training configuration

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.

Running the notebook

  1. Install the Python dependencies used by the notebook:

    pip install numpy torch seaborn mplhep onnxmltools onnxruntime \
        scikit-learn pandas matplotlib pyarrow
  2. Open train.ipynb in Jupyter or VS Code.

  3. Update the input parquet path in the data-loading cell for your environment.

  4. 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.

Repository layout

.
├── 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

Input-feature correlation

The input-feature correlation matrix used during data inspection is included for reference:

Input feature correlation matrix

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages