Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AMK13 opened this issue Jul 20, 2020 · 1 comment
Open

Comments

@AMK13
Copy link

AMK13 commented Jul 20, 2020

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
Copy link
Contributor

You need to import your detector from run.py.

from nab.detectors.pyod import PyodDetector`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants