numenta / NAB

The Numenta Anomaly Benchmark
GNU Affero General Public License v3.0
1.93k stars 869 forks source link

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

Open AMK13 opened 4 years ago

AMK13 commented 4 years ago

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

lscheinkman commented 4 years ago

You need to import your detector from run.py.

from nab.detectors.pyod import PyodDetector`