ensozos / Matrix-Profile

A Java library for Matrix Profile
https://ensozos.github.io/Matrix-Profile/
MIT License
19 stars 7 forks source link

Exception in thread `main` #21

Open mactsouk opened 3 years ago

mactsouk commented 3 years ago

When trying to use getMPdistance(), I get the following error:

Exception in thread "main" java.lang.NoSuchMethodError: 'org.nd4j.linalg.api.ndarray.INDArray org.nd4j.linalg.factory.Nd4j.zeros(long, long)'
    at io.github.ensozos.core.MPdistance.getMassDistMatrix(MPdistance.java:116)
    at io.github.ensozos.core.MPdistance.getMPdistance(MPdistance.java:52)
    at Main.Main.main(Main.java:29)

I suppose it is an error related to org.nd4j.linalg.api.ndarray.INDArray not having an zeros(long, long) method but I am not proficient in Java in order to search it more. Any ideas on what to do with it?

Thanks!

mactsouk commented 3 years ago

Please read this in case it helps.

ensozos commented 3 years ago

Hi @mactsouk. Yes, we need to update the version of the ND4j to 7. I will probably do that next week. If you need that earlier, you can fork the library, update the dependencies and pr. I will be happy to answer any of your questions about the lib.

mactsouk commented 3 years ago

Thanks @ensozos - should you also need to push it as a new version at https://mvnrepository.com/artifact/io.github.ensozos/matrix-profile/?

ensozos commented 3 years ago

Yes, I'll have to push a new version on mvn.