java.lang.IllegalStateException: Mis matched lengths: [9000] != [3]

Stack Overflow | Romeo Kienzler | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

    2 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalStateException

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

      at org.nd4j.linalg.util.LinAlgExceptions.assertSameLength()
    2. nd4j-api
      BaseNDArray.sub
      1. org.nd4j.linalg.util.LinAlgExceptions.assertSameLength(LinAlgExceptions.java:39)
      2. org.nd4j.linalg.api.ndarray.BaseNDArray.subi(BaseNDArray.java:2786)
      3. org.nd4j.linalg.api.ndarray.BaseNDArray.subi(BaseNDArray.java:2767)
      4. org.nd4j.linalg.api.ndarray.BaseNDArray.sub(BaseNDArray.java:2547)
      4 frames
    3. org.deeplearning4j.nn
      MultiLayerNetwork.computeGradientAndScore
      1. org.deeplearning4j.nn.layers.BaseOutputLayer.getGradientsAndDelta(BaseOutputLayer.java:182)
      2. org.deeplearning4j.nn.layers.BaseOutputLayer.backpropGradient(BaseOutputLayer.java:161)
      3. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.calcBackpropGradients(MultiLayerNetwork.java:1125)
      4. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.backprop(MultiLayerNetwork.java:1077)
      5. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.computeGradientAndScore(MultiLayerNetwork.java:1817)
      5 frames
    4. org.deeplearning4j.optimize
      Solver.optimize
      1. org.deeplearning4j.optimize.solvers.BaseOptimizer.gradientAndScore(BaseOptimizer.java:152)
      2. org.deeplearning4j.optimize.solvers.StochasticGradientDescent.optimize(StochasticGradientDescent.java:54)
      3. org.deeplearning4j.optimize.Solver.optimize(Solver.java:51)
      3 frames
    5. org.deeplearning4j.nn
      MultiLayerNetwork.fit
      1. org.deeplearning4j.nn.multilayer.MultiLayerNetwork.fit(MultiLayerNetwork.java:1445)
      1 frame
    6. org.deeplearning4j.examples
      IoTAnomalyExample.main
      1. org.deeplearning4j.examples.feedforward.anomalydetection.IoTAnomalyExample.main(IoTAnomalyExample.java:110)
      1 frame