Getting started
Jupyter notebooks
Example Jupyter notebooks are provided at https://github.com/CESNET/cesnet-tcexamples. Start with:
- Training of a neural network from scratch with data transformations - example_train_nn.ipynb
- Evaluate a pre-trained neural network I (TLS) - reproduce_tls.ipynb
- Evaluate a pre-trained neural network II (QUIC) - reproduce_quic.ipynb
Code snippets
from cesnet_models.models import MM_CESNET_V2_Weights, mm_cesnet_v2
pretrained_weights = MM_CESNET_V2_Weights.CESNET_QUIC22_Week44
model = mm_cesnet_v2(weights=pretrained_weights, model_dir="models/")
model.eval()
. To train the model, you should first set it back in the training mode with model.train()
.