Views
No views yet
legit (0) or dga (1)| Metric | Value |
|---|---|
| Accuracy | 0.8916 |
| F1 | 0.8556 |
| Precision | 0.9134 |
| Recall | 0.8433 |
| FPR | 0.0600 |
| Query Time | 0.067 ms/domain (CPU) |
1from huggingface_hub import hf_hub_download
2import importlib.util, torch
3
4weights = hf_hub_download("Reynier/dga-bilstm", "bilstm_best.pth")
5model_py = hf_hub_download("Reynier/dga-bilstm", "model.py")
6
7spec = importlib.util.spec_from_file_location("bilstm_model", model_py)
8mod = importlib.util.module_from_spec(spec)
9spec.loader.exec_module(mod)
10
11model = mod.load_model(weights)
12results = mod.predict(model, ["google.com", "xkr3f9mq.ru"])
13print(results)1@article{reynier2026dga,
2 title={DGA Multi-Family Benchmark: Comparing Classical and Transformer-based Detectors},
3 author={Reynier et al.},
4 year={2026}
5}