Have a question? Connect with the community at the TensorFlow Forum

# MinMaxNorm

public class MinMaxNorm

Constrains the weights to have the norm between a lower bound and an upper bound.

### Constants

 int AXIS_DEFAULT double MAX_VALUE_DEFAULT double MIN_VALUE_DEFAULT double RATE_DEFAULT

### Public Constructors

 (Ops tf) Create a MinMaxNorm constraint using ``` MIN_VALUE_DEFAULT ``` for the min value, ``` MAX_VALUE_DEFAULT ``` for the max value, ``` RATE_DEFAULT ``` for the rate and ``` AXIS_DEFAULT ``` for the axis (Ops tf, double minValue, double maxValue) Create a MinMaxNorm constraint using ``` RATE_DEFAULT ``` for the rate and ``` AXIS_DEFAULT ``` for the axis (Ops tf, double minValue, double maxValue, double rate, int axis) Create a MinMaxNorm constraint (Ops tf, double minValue, double maxValue, double rate, int[] axes) Create a MinMaxNorm constraint

### Public Methods

 Operand ( Operand weights) Applies the constraint against the provided weights int[] () Gets the axes double () Gets the maxValue double () Gets the minValue double () Gets the rate

## Constants

#### public static final int AXIS_DEFAULT

Constant Value: 0

#### public static final double MAX_VALUE_DEFAULT

Constant Value: 1.0

#### public static final double MIN_VALUE_DEFAULT

Constant Value: 0.0

#### public static final double RATE_DEFAULT

Constant Value: 1.0

## Public Constructors

#### public MinMaxNorm (Ops tf)

Create a MinMaxNorm constraint using ``` MIN_VALUE_DEFAULT ``` for the min value, ``` MAX_VALUE_DEFAULT ``` for the max value, ``` RATE_DEFAULT ``` for the rate and ``` AXIS_DEFAULT ``` for the axis

##### Parameters
 tf the TensorFlow Ops

#### public MinMaxNorm (Ops tf, double minValue, double maxValue)

Create a MinMaxNorm constraint using ``` RATE_DEFAULT ``` for the rate and ``` AXIS_DEFAULT ``` for the axis

##### Parameters
 tf the TensorFlow Ops the minimum norm for the incoming weights. the maximum norm for the incoming weights.

#### public MinMaxNorm (Ops tf, double minValue, double maxValue, double rate, int axis)

Create a MinMaxNorm constraint

##### Parameters
 tf the TensorFlow Ops the minimum norm for the incoming weights. the maximum norm for the incoming weights. the rate for enforcing the constraint. integer, axis along which to calculate weight norms.

#### public MinMaxNorm (Ops tf, double minValue, double maxValue, double rate, int[] axes)

Create a MinMaxNorm constraint

##### Parameters
 tf the TensorFlow Ops the minimum norm for the incoming weights. the maximum norm for the incoming weights. the rate for enforcing the constraint. integer, axis along which to calculate weight norms.

## Public Methods

#### public Operand <T> call ( Operand <T> weights)

Applies the constraint against the provided weights

##### Parameters
 weights the weights
##### Returns
• the constrained weights

Gets the axes

• the axes

#### public double getMaxValue ()

Gets the maxValue

• the maxValue

#### public double getMinValue ()

Gets the minValue

• the minValue

#### public double getRate ()

Gets the rate

##### Returns
• the rate
[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]