java.lang.IllegalStateException

Mis matched lengths: [9000] != [3]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web488

  • Mis matched lengths: [9000] != [3]
  • via GitHub by AlexDBlack
    , 11 months ago
    Mis matched lengths
  • via GitHub by mbofb
    , 3 weeks ago
    Mis matched lengths: [658] != [684]
  • Stack trace

    • java.lang.IllegalStateException: Mis matched lengths: [9000] != [3] at org.nd4j.linalg.util.LinAlgExceptions.assertSameLength(LinAlgExceptions.java:39) at org.nd4j.linalg.api.ndarray.BaseNDArray.subi(BaseNDArray.java:2786) at org.nd4j.linalg.api.ndarray.BaseNDArray.subi(BaseNDArray.java:2767) at org.nd4j.linalg.api.ndarray.BaseNDArray.sub(BaseNDArray.java:2547) at org.deeplearning4j.nn.layers.BaseOutputLayer.getGradientsAndDelta(BaseOutputLayer.java:182) at org.deeplearning4j.nn.layers.BaseOutputLayer.backpropGradient(BaseOutputLayer.java:161) at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.calcBackpropGradients(MultiLayerNetwork.java:1125) at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.backprop(MultiLayerNetwork.java:1077) at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.computeGradientAndScore(MultiLayerNetwork.java:1817) at org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:152) 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:1445) at org.deeplearning4j.examples.feedforward.anomalydetection.IoTAnomalyExample.main(IoTAnomalyExample.java:110)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago