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( at org.nd4j.linalg.api.ndarray.BaseNDArray.subi( at org.nd4j.linalg.api.ndarray.BaseNDArray.subi( at org.nd4j.linalg.api.ndarray.BaseNDArray.sub( at org.deeplearning4j.nn.layers.BaseOutputLayer.getGradientsAndDelta( at org.deeplearning4j.nn.layers.BaseOutputLayer.backpropGradient( at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.calcBackpropGradients( at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.backprop( at org.deeplearning4j.nn.multilayer.MultiLayerNetwork.computeGradientAndScore( at org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore( at org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize( at org.deeplearning4j.optimize.Solver.optimize( at at org.deeplearning4j.examples.feedforward.anomalydetection.IoTAnomalyExample.main(

    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