It is recommended to use an isolated Python 3.10 environment, like venv.
For example:
python3 -m venv ADA-NAF
source ADA-NAF/bin/activate
The following code is for an article about ADA-NAF and is based on https://github.com/andruekonst/NAF:
anomaly_detection = AnomalyDetection(num_seeds=10,
num_cross_val=10,
num_trees=100,
count_epoch=50)
anomaly_detection.start_model_naf("ADA-NAF-1-LAYER") # Options: "ADA-NAF-3-LAYER", "ADA-NAF-MH-3-HEAD-1-LAYER"