jingconan / GAD

General Anomaly Detector
GNU General Public License v3.0
8 stars 2 forks source link

PR to merge New hoeffding rule to master #11

Closed jingconan closed 8 years ago

jingconan commented 8 years ago

Has been merged in https://github.com/hbhzwj/GAD/commit/f29d9ee93759b2497467bff9451fa3cc3ade3566

jingconan commented 8 years ago

It seems that after meging the branch. I still get the following error

2016-10-23 22:16:52 Detector$ ./cmdgad detect -c ./example-configs/detect-config.py -d ./test/n0_flow.txt --method='mfmb' --pic_show WARNING:util:Cannot find [socketIO_client], real-time ability is disabled. WARNING:util:Cannot import sql related function, reading for sql server is not supported Probably you forget to specify some options? run ./cmdgad -h for more information. Traceback (most recent call last): File "./cmdgad", line 55, in main get_exper(args.experiment, res_args).run() File "/Users/jingwang/Github/sadit/Detector/gad/Experiment/Detect.py", line 93, in run detector = self.detect() File "/Users/jingwang/Github/sadit/Detector/gad/Experiment/Detect.py", line 89, in detect self.res_args) File "/Users/jingwang/Github/sadit/Detector/gad/Detector/API.py", line 97, in detect detector.detect(data_handler) File "/Users/jingwang/Github/sadit/Detector/gad/Detector/StoDetector.py", line 439, in detect self._init_for_threshold_rule() File "/Users/jingwang/Github/sadit/Detector/gad/Detector/StoDetector.py", line 349, in _init_for_threshold_rule pmf, Pmb = self.norm_em TypeError: 'NoneType' object is not iterable

The change in this PR doesn't seem include the implementation for new thresholding rule.

jingzbu commented 8 years ago

Now, the command ./cmdgad detect -c ./example-configs/detect-config.py -d ./test/n0_flow.txt --method='mfmb' --pic_show should work.

Also, one could try ./cmdgad detect -c ./example-configs/detect-config.py -d ./test-data/n0_flow.txt -m mb --pic_show

./cmdgad detect -c ./example-configs/detect-config.py -d ./test-data/n0_flow.txt -m mfmb --pic_show

etc.