Skip to content

Commit

Permalink
add bdt tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Jan 9, 2024
1 parent a61b42a commit 734d30b
Show file tree
Hide file tree
Showing 15 changed files with 564 additions and 471 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ ______________________________________________________________________
## Introduction

This is a set of tutorials for the LPC Data Analysis School (DAS) Machine Learning Short Exercise.
They are intended to show you how to build machine learning models in python, using `Keras`, `TensorFlow`, and `PyTorch`, and use them in your `ROOT`-based analyses.
We will build event-level classifiers for differentiating VBF Higgs and standard model background 4 muon events and jet-level classifiers for differentiating boosted W boson jets from QCD jets using dense and convolutional neural networks.
They are intended to show you how to build machine learning models in python, using `xgboost`, `Keras`, `TensorFlow`, and `PyTorch`, and use them in your `ROOT`-based analyses.
We will build event-level classifiers for differentiating VBF Higgs and standard model background 4 muon events and jet-level classifiers for differentiating boosted W boson jets from QCD jets using BDTs, and dense and convolutional neural networks.
We will also explore more advanced models such as graph neural networks (GNNs), variational autoencoders (VAEs), and generative adversarial networks (GANs) on simple datasets.

## Setup
Expand Down
17 changes: 9 additions & 8 deletions machine-learning-das/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ parts:
maxdepth: 2
chapters:
- file: notebooks/1-datasets-uproot
- file: notebooks/2-dense
- file: notebooks/2-boosted-decision-trees
- file: notebooks/3-dense
sections:
- file: notebooks/2.1-dense-keras
- file: notebooks/2.2-dense-pytorch
- file: notebooks/2.3-dense-bayesian-optimization
- file: notebooks/3-conv2d
- file: notebooks/4-gnn-cora
- file: notebooks/5-vae-mnist
- file: notebooks/6-gan-mnist
- file: notebooks/3.1-dense-keras
- file: notebooks/3.2-dense-pytorch
- file: notebooks/3.3-dense-bayesian-optimization
- file: notebooks/4-conv2d
- file: notebooks/5-gnn-cora
- file: notebooks/6-vae-mnist
- file: notebooks/7-gan-mnist
1 change: 1 addition & 0 deletions machine-learning-das/condaenv.thhr9qc_.requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-r requirements.txt
466 changes: 14 additions & 452 deletions machine-learning-das/notebooks/1-datasets-uproot.ipynb

Large diffs are not rendered by default.

526 changes: 526 additions & 0 deletions machine-learning-das/notebooks/2-boosted-decision-tree.ipynb

Large diffs are not rendered by default.

File renamed without changes.
18 changes: 10 additions & 8 deletions machine-learning-das/setup-libraries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,22 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Sourcing the conda and mamba setup scripts...\n",
"Activating the kernel \"machine-learning-hats\"...\n",
"Installed kernelspec machine-learning-hats in /home/cms.rkansal/.local/share/jupyter/kernels/machine-learning-hats\n",
"Installed \"machine-learning-hats\"!\n"
"Executing transaction: ...working... done\n"
]
}
],
"source": [
"%%bash\n",
"#!/bin/bash\n",
"\n",
"KERNEL_NAME=\"machine-learning-hats\"\n",
"KERNEL_NAME=\"machine-learning-das\"\n",
"\n",
"# Download mambaforge install script\n",
"if [[ ! -f $HOME/mambaforge.sh ]]; then\n",
Expand Down Expand Up @@ -81,11 +78,16 @@
"If successful, you should see something similar to the following:\n",
"\n",
"```\n",
"Installed \"machine-learning-hats\"!\n",
"Installed \"machine-learning-das\"!\n",
"```\n",
"\n",
"The new kernel you just made will then show up in the various Jupyter notebooks after refreshing the page."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
}
],
"metadata": {
Expand All @@ -104,7 +106,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
"version": "3.10.0"
}
},
"nbformat": 4,
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ pandas
torch
ipykernel
tqdm
jupyter
jupyter
xgboost

0 comments on commit 734d30b

Please sign in to comment.