java.lang.IllegalStateException: Mis matched lengths: [28] != [100352]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by jerome-tan-git
, 11 months ago
via GitHub by AlexDBlack
, 1 year ago
Mis matched lengths: [1] != [10]
via GitHub by AlexDBlack
, 1 year ago
Mis matched lengths
via GitHub by mbofb
, 6 months ago
Mis matched lengths: [658] != [684]
java.lang.IllegalStateException: Mis matched lengths: [28] != [100352]
at org.nd4j.linalg.api.ops.BaseTransformOp.(BaseTransformOp.java:48)
at org.nd4j.linalg.api.ops.impl.transforms.Set.(Set.java:25)
at org.nd4j.linalg.api.ndarray.BaseNDArray.assign(BaseNDArray.java:1137)
at org.nd4j.linalg.api.ndarray.BaseNDArray.reshape(BaseNDArray.java:3597)
at org.nd4j.linalg.api.ndarray.BaseNDArray.reshape(BaseNDArray.java:3640)
at org.deeplearning4j.nn.layers.BaseOutputLayer.getLabels2d(BaseOutputLayer.java:412)
at org.deeplearning4j.nn.layers.BaseOutputLayer.getGradientsAndDelta(BaseOutputLayer.java:170)
at org.deeplearning4j.nn.layers.BaseOutputLayer.backpropGradient(BaseOutputLayer.java:151)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.calcBackpropGradients(MultiLayerNetwork.java:1097)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.backprop(MultiLayerNetwork.java:1049)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.computeGradientAndScore(MultiLayerNetwork.java:1833)
at org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:151)
at org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize(StochasticGradientDescent.java:54)
at org.deeplearning4j.optimize.Solver.optimize(Solver.java:51)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1443)
at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1408)
at org.deeplearning4j.examples.dataExamples.AnomalyTest.main(AnomalyTest.java:75)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.