NYU-HSRN-Network-Data-Science-Group / AutoZeekWatch

An online, deployable machine learning network intrusion detection system for Zeek.
MIT License
3 stars 0 forks source link

clean up utils.py #24

Closed zoe70416 closed 8 months ago

zoe70416 commented 8 months ago

I cleaned up the TODO and added some new descriptions. (dev03)

The code works `(base) Zoe@10-19-235-169 NIDS % python train.py --log-dir /usr/local/logs

2024-02-21 10:38:46,899 - root - INFO - Using logdir: /usr/local/logs (train.py) 2024-02-21 10:38:46,899 - root - INFO - Using Parameters - max_size_ae: 30, grace_feature_mapping: 5000, grace_anomaly_detector: 50000, learning_rate: 0.001, hidden_ratio: 0.5 (train.py) 2024-02-21 10:38:46,899 - root - INFO - Checking /usr/local/logs/2024-02-09 (train.py) 2024-02-21 10:38:46,899 - root - INFO - Opening file /usr/local/logs/2024-02-09/conn.23:19:44-01:23:24.log.gz (train.py) 2024-02-21 10:38:46,925 - root - INFO - Hello from preprocess_json. Please implement me :) (utils.py) Feature-Mapper: train-mode, Anomaly-Detector: off-mode 2024-02-21 10:38:46,933 - root - INFO - Opening file /usr/local/logs/2024-02-09/conn.18:20:31-19:00:01.log.gz (train.py) 2024-02-21 10:38:46,952 - root - INFO - Hello from preprocess_json. Please implement me :) (utils.py) 2024-02-21 10:38:46,957 - root - INFO - Opening file /usr/local/logs/2024-02-09/conn.15:18:10-16:30:01.log.gz (train.py) 2024-02-21 10:38:47,002 - root - INFO - Hello from preprocess_json. Please implement me :) (utils.py) 2024-02-21 10:38:47,033 - root - INFO - Opening file /usr/local/logs/2024-02-09/conn.20:48:03-22:36:06.log.gz (train.py) 2024-02-21 10:38:47,052 - root - INFO - Hello from preprocess_json. Please implement me :) (utils.py) 2024-02-21 10:38:47,055 - root - INFO - Opening file /usr/local/logs/2024-02-09/conn.17:34:32-18:20:31.log.gz (train.py) 2024-02-21 10:38:47,072 - root - INFO - Hello from preprocess_json. Please implement me :) (utils.py)`

diego-lopez8 commented 8 months ago

lgtm