Class MinMaxNormConstraint

    • Constructor Detail

      • MinMaxNormConstraint

        public MinMaxNormConstraint​(double min,
                                    double max,
                                    int... dimensions)
        Apply to weights but not biases by default
        Parameters:
        max - Maximum L2 value
        min - Minimum L2 value
        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]
      • MinMaxNormConstraint

        public MinMaxNormConstraint​(double min,
                                    double max,
                                    double rate,
                                    int... dimensions)
        Apply to weights but not biases by default
        Parameters:
        max - Maximum L2 value
        min - Minimum L2 value
        rate - Constraint rate
        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]
      • MinMaxNormConstraint

        public MinMaxNormConstraint​(double min,
                                    double max,
                                    double rate,
                                    Set<String> paramNames,
                                    int... dimensions)
        Parameters:
        max - Maximum L2 value
        min - Minimum L2 value
        rate - Constraint rate
        paramNames - Which parameter names to apply constraint to
        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]