Class UnitNormConstraint

    • Constructor Detail

      • UnitNormConstraint

        public UnitNormConstraint​(int... dimensions)
        Apply to weights but not biases by default
        Parameters:
        dimensions - Dimensions to apply to. For DenseLayer, OutputLayer, RnnOutputLayer, LSTM, etc: this should be dimension 1. For CNNs, this should be dimensions [1,2,3] corresponding to last 3 of parameters which have order [depthOut, depthIn, kH, kW]
      • UnitNormConstraint

        public UnitNormConstraint​(Set<String> paramNames,
                                  int... dimensions)
        Parameters:
        dimensions - Dimensions to apply to. For DenseLayer, OutputLayer, RnnOutputLayer, LSTM, etc: this should be dimension 1. For CNNs, this should be dimensions [1,2,3] corresponding to last 3 of parameters which have order [depthOut, depthIn, kH, kW]