Matrix-Profile icon indicating copy to clipboard operation
Matrix-Profile copied to clipboard

Exception in thread `main`

Open mactsouk opened this issue 4 years ago • 4 comments

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 avatar Jul 08 '21 10:07 mactsouk

Please read this in case it helps.

mactsouk avatar Jul 08 '21 13:07 mactsouk

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.

ensozos avatar Jul 08 '21 14:07 ensozos

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

mactsouk avatar Jul 08 '21 14:07 mactsouk

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

ensozos avatar Jul 08 '21 14:07 ensozos