Class NegIdentityInpOptLoss

  • All Implemented Interfaces:
    InputOptimizerLoss

    public class NegIdentityInpOptLoss
    extends java.lang.Object
    implements InputOptimizerLoss
    Loss function for PLNet input optimization that maximizes the output of a PLNet. (i.e. minimizes the negative output)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double loss​(org.nd4j.linalg.api.ndarray.INDArray plNetOutput)  
      double lossGradient​(org.nd4j.linalg.api.ndarray.INDArray plNetOutput)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NegIdentityInpOptLoss

        public NegIdentityInpOptLoss()
    • Method Detail

      • loss

        public double loss​(org.nd4j.linalg.api.ndarray.INDArray plNetOutput)
        Specified by:
        loss in interface InputOptimizerLoss
      • lossGradient

        public double lossGradient​(org.nd4j.linalg.api.ndarray.INDArray plNetOutput)
        Specified by:
        lossGradient in interface InputOptimizerLoss