Skip to content

Commit 6ac2b35

Browse files
authored
Update README.md
1 parent 64486e0 commit 6ac2b35

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ This repository is developed by George Dialektakis, as a Google Summer of Code (
88

99
[Setup](#setup)
1010

11+
[Running the code](#running-the-code)
12+
1113
[Data extraction](#data-extraction)
1214

1315
## Setup
@@ -20,6 +22,26 @@ Install dependencies:
2022
pip3 install -r requirements.txt
2123
```
2224

25+
## Running the code
26+
```
27+
usage: python main.py [--use_vae] [--use_sae] [--l1] [--epochs] [--custom_norm]
28+
[--num_variables] [--plot]
29+
30+
optional arguments:
31+
--use_vae whether to use Variational AE (default: False)
32+
--use_sae whether to use Sparse AE (default: False)
33+
--l1 whether to use L1 loss or KL-divergence in the Sparse AE (default: True)
34+
--epochs number of epochs to train (default: 50)
35+
--custom_norm whether to normalize all variables with min_max scaler or also use custom normalization for 4-momentum (default: False)
36+
--num_variables number of variables we want to compress (either 19 or 24) (default: 24)
37+
--plot whether to make plots (default: False)
38+
```
39+
Example:
40+
41+
```
42+
python main.py --use_sae True --epochs 30 --num_variables 19 --plot True
43+
```
44+
The above command will train the Sparse Autoencoder for 30 epochs to compress the 19D data and will make plots of the input and preprocessed data.
2345

2446
## Data extraction
2547
The data that were used for this project can be downloaded from [CERN Open Data Portal](http://opendata.cern.ch/record/6010). The file that was used is: *00992A80-DF70-E211-9872-0026189437FE.root* under the filename *CMS_Run2012B_JetHT_AOD_22Jan2013-v1_20000_file_index.txt*. The data can then be loaded with `data_loader()`, which produces a pandas dataframe from the ROOT file.

0 commit comments

Comments
 (0)