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 with "batch_size" in main.py #25

Open
JanWaldhorn opened this issue Jun 27, 2020 · 2 comments
Open

Issue with "batch_size" in main.py #25

JanWaldhorn opened this issue Jun 27, 2020 · 2 comments

Comments

@JanWaldhorn
Copy link

I find your approach very exciting and wanted to try out your code.
As a basis I use Anaoconda on a Win 10 PC.
After the installation I had some trouble (not recognized _anomaly_kernel_cython.c )which could be solved by compiling the cpython module (see here).

please use the following command to compile the cpython module.
python setup.py build_ext --inplace

Originally posted by @guinao in #19 (comment)

When trying to run the main.py script, the following error message appears

File "main.py", line 17, in <module> detect_anomaly(sample, THRESHOLD, MAG_WINDOW, SCORE_WINDOW, 99, DetectMode.anomaly_only) File "main.py", line 9, in detect_anomaly sensitivity=sensitivity, detect_mode=detect_mode) TypeError: __init__() missing 1 required positional argument: 'batch_size'

Can anyone give me a hint what value the variable batch_size should have?

Many thanks in advance

@manikTharaka
Copy link

I also ran into some issues like this. Looks like the maintainers made a few changes to the method signatures. For the batch_size parameter I would try with a value smaller than the series length that you are inputting. For instance if the series length is 1000 I would try with a batch size of 100.

@JanWaldhorn
Copy link
Author

Thanks a lot for the hint!

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