NAB icon indicating copy to clipboard operation
NAB copied to clipboard

Issue while trying to run custom anomoly detection algoritham using path 1

Open AMK13 opened this issue 5 years ago • 1 comments

Hi, I am facing an issue when trying to run my detector using "python run.py -d pyod" where pyod is the detector I am trying to use.

I get the following error, any feedback on how to proceed will be helpful.

Proceed? (y/n): y Traceback (most recent call last): File "run.py", line 202, in main(args) File "run.py", line 68, in main detectorConstructors = getDetectorClassConstructors(args.detectors) File "run.py", line 41, in getDetectorClassConstructors d : globals()[detectorNameToClass(d)] for d in detectors} File "run.py", line 41, in d : globals()[detectorNameToClass(d)] for d in detectors} KeyError: 'PyodDetector'

Best wishes

Muneeb

AMK13 avatar Jul 20 '20 22:07 AMK13

You need to import your detector from run.py.

from nab.detectors.pyod import PyodDetector`

lscheinkman avatar Jul 22 '20 02:07 lscheinkman