The current version of
pip3 install -r requirements.txt
If you haven't installed uv
yet:
pip3 install uv
With UV installed:
# Create virtual environment (venv)
uv venv
# Sync dependencies
uv sync requirements.txt
# Activate virtual environment (venv)
source .venv/bin/activate
-
Clone the Repository
git clone https://github.com/Yonsei-HEP-COSMO/DeeLeMa.git
-
Install Dependencies:
Follow the Requirements section for instructions.
-
Training:
⚠️ CautionBefore training, ensure you modify the data path in
train.py
to point to the location of your data. For more details, refer totrain.py
.To train the model, execute the following command:
python train.py
-
Monitoring:
To monitor the training process, run
tensorboard
:tensorboard --logdir=logs/
⚠️ CautionIf you use huak then should run tensorboard in activated virtual environment.
-
Testing:
-
Load the saved checkpoint using the
load_from_checkpoint()
method:checkpoint_path = "DeeLeMa_Toy.ckpt" model = DeeLeMa.load_from_checkpoint(checkpoint_path)
-
Set the model to evaluation mode:
model.eval()
-
Use the loaded model for inference or further analysis:
from deelema.utils import decode_missing_momentum output = decode_missing_momentum(model, dl_test, m_C) # m_C is the pre-determined mass
-
If
@article{Ban:2023mjy,
author = "Ban, Kayoung and Kang, Dong Woo and Kim, Tae-Geun and Park, Seong Chan and Park, Yeji",
title = "{Missing information search with deep learning for mass estimation}",
doi = "10.1103/PhysRevResearch.5.043186",
journal = "Phys. Rev. Res.",
volume = "5",
number = "4",
pages = "043186",
year = "2023"
}
- K. Ban, D. W. Kang, T.-G. Kim, S. C. Park, and Y. Park, Missing Information Search with Deep Learning for Mass Estimation, PhysRevResearch.5.043186
LICENSE
file in the repository.
-
Loading a Trained Model:
- Load the saved checkpoint using the
load_from_checkpoint()
method:
checkpoint_path = "DeeLeMa_Toy.ckpt" model = DeeLeMa.load_from_checkpoint(checkpoint_path)
- Set the model to evaluation mode:
model.eval()
- Use the loaded model for inference or further analysis:
predictions = [] with torch.no_grad(): for batch in dl_test: outputs = model(batch) predictions.append(outputs)
- Load the saved checkpoint using the
If
@article{Ban:2023mjy,
author = "Ban, Kayoung and Kang, Dong Woo and Kim, Tae-Geun and Park, Seong Chan and Park, Yeji",
title = "{Missing information search with deep learning for mass estimation}",
doi = "10.1103/PhysRevResearch.5.043186",
journal = "Phys. Rev. Res.",
volume = "5",
number = "4",
pages = "043186",
year = "2023"
}
K. Ban, D. W. Kang, T.-G. Kim, S. C. Park, and Y. Park, Missing Information Search with Deep Learning for Mass Estimation*, PhysRevResearch.5.043186
LICENSE
file in the repository.