In the following, we use ./../Datasets as the path to where the dataset is stored, and ches_2025 as the directory of the repository.
For TensorFlow, make sure that the tensorflow version: 2.19.0
cd ches_2025
python3 -m venv ches_env
source ches_env/bin/activate
pip install pip --upgrade
pip install -r requirements.txt
#For Pytorch library, go to https://pytorch.org/
#and install pytorch before running the following command line.
python3 main_{tf/pytorch}.py #Train Neural Network
deactivate
Analyze the trained model during the attack phase
For submission, one should edit the code analyze_{tf/pytorch}.py, where they have to load their model to run the function evaluate() to compute the guessing entropy. There are some code there
python3 analyze_{tf/pytorch}.py
The function evaluate() will output something like: