-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issues when trying to update ND4J depenency to 1.0.0-M2.1 #24
Comments
I made some experiments. As a reference-implementation, I assume the Python stumpy library. Furthermore, Furthermore, I assume that your stmp-code is equivalent to stumpy's "stump" method. As test data I used the "targetSeriesWithPattern":
and calculated the stumpy.stump profile with windows size 8 to be equivalent with your "Windows8" test case:
stumpy.stump produces (this is my reference):
You provide "expected values in your test case "Windows8". The difference array
the corresponding difference array
Question is what that means...? |
Hi Enzosos,
I am trying to use your library in a Project for tuning an particle ion source (similar to what is show here: Ion Source Optimization Using Bi-Objective Genetic and Matrix-Profile Algorithm). In the paper I used a Python implementation of matrix-profile, but not I want to move the logic to JAVA. One goal in this is to update the dependencies to np4j to version 1.0.0-M2.1, which unfortunately has breaking changes (introduced with nd4j 1.0.0-beta4).
One issue I am facing when running the unit tests with the updated dependency is that all calls of the type
INDArray.get(INDArrayIndex... indexes)
Need to be two dimensional now. This is not a general issue, but when changing the code in MatrixProfileCalculator::MPRunnable::run(), from
to (NDArrayIndex.all() to be compatible to nd4j 1.0.0-M2.1)
I get errors like
for all "testMatrixProfileSelfJoin*" test cases of Matrix profile test. The cause of this error is the fact that
distanceProfile.put(...)
(calling INDArray.get()) fails, because for theget(...)
theIntervalIndex
inìndices
is larger than thedistanceProfile
array. This again is caused, because theIntervalIndex
is created using the size oftsB
which is larger thandistanceProfile
.One way to cure this is to change the code to in MatrixProfileCalculator to
I am not sure if this is the right approach as it changes the logic of calculating Matrix-Profile. With this change, the tests do not throw errors any more, but I get assertion failures in tests
Windows8
,2SawTeeth
,2Humps
, ... ;Windows4
,Windows5
,StraightLine
,Plateau
become green.Could you have a look into this?
The text was updated successfully, but these errors were encountered: