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

Setting [MINIMUM LENGTH] parameter smaller than 32 will cause an exception #2

Open
Fischer-Bjoern opened this issue Jan 9, 2021 · 0 comments

Comments

@Fischer-Bjoern
Copy link

This error occurs because there is an array paaTest that is being populated which uses a fixed size of 32 entries.
When the window is smaller than 32 entries, populating this paaTest will result in access to an element which is beyond the end of the loaded window and it will thus cause an exception.

Here is the example output:

> java -Xmx8g -jar HIME_release.jar test-file.cv 30
Start Adaptive Parameter Selection a: 0.266616292 seconds at 78001
Adaptive Choosing: 11
Process End: 0.2873054 seconds at 78001
Alp: 11
Sliding Window: 30
Paa: 4
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 78001
        at hime.discretization.TimeSeriesTokenize.discretize(TimeSeriesTokenize.java:265)
        at hime.discretization.TimeSeriesTokenize.readTokens(TimeSeriesTokenize.java:83)
        at hime.model.HIMEFactory.runHIME(HIMEFactory.java:61)
        at Run.main(Run.java:37)
Exception in thread "main" java.lang.NullPointerException
        at hime.model.HIMEFactory.runHIME(HIMEFactory.java:63)
        at Run.main(Run.java:37)

I do not yet fully understand the purpose of paaTest so I don't know how to fix this myself.

My purpose for setting a very small window size is that I want to use HIME to try and analyse a time series for the presence of Motivs of varying sizes, some of these Motivs might be quite short.

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

1 participant