https://github.com/milescb/tauvertexcse543
Estimating the Decay Vertex of Leptonically Decaying Tau Leptons with Deep Learning
https://github.com/milescb/tauvertexcse543
Last synced: over 1 year ago
JSON representation
Estimating the Decay Vertex of Leptonically Decaying Tau Leptons with Deep Learning
- Host: GitHub
- URL: https://github.com/milescb/tauvertexcse543
- Owner: milescb
- Created: 2024-11-01T03:11:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T19:10:15.000Z (over 1 year ago)
- Last Synced: 2024-11-26T20:20:19.345Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 83.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Estimating the Decay Vertex of Leptonically Decaying Tau Leptons with Deep Learning
## Setting up the environment
1. **Create the Conda Environment**:
```sh
conda create --name myenv
```
2. **Activate the Conda Environment**:
```sh
conda activate myenv
```
3. **Install Dependencies**:
```sh
pip install -r requirements.txt
```
## Data
For convenience, a small dataset used for training is included at `data/data.root`. To download a sample with ~1.7 million events run:
```
curl -o data/data_large.root https://cernbox.cern.ch/remote.php/dav/public-files/3w2v4biLSGyi9BL/data_large.root
```
## Running the code
To train simply run the training script:
```
python train.py -out output -epoch 50 -bs 128 -lr 0.0004 --hidden-size 128 --n-gaussians 3
```
This saves a trained model to the selected output directory. Then, to test, run the testing script over the trained model:
```
python test.py --model-path output/model.pth --output-dir plots
```
A pre-trained network on the large data-set is saved in `output/model_mdn.pth`. To get plots from this immediately, run
```
python test.py --model-path output/model_mdn.pth
```
Note: the large dataset must be used for testing this model out of the box.