mxnet.gluon.probability.distributions.constraint¶
Base class and implementations of constraint
Functions
|
Classes
|
Constrain to {0, 1}. |
|
Constraint functor that applies a sequence of constraints constraint_seq at the submatrices at axis, each of size lengths[axis], in compatible with |
Base class for constraints. |
|
|
Constrain to be greater than lower_bound. |
|
Constrain to be greater than or equal to lower_bound. |
|
Constrain to a real interval [lower_bound, upper_bound) |
|
Constrain to be integer and be greater than lower_bound. |
|
Constrain to be integer and be greater than or equal to lower_bound. |
|
Constrain to an integer interval [lower_bound, upper_bound) |
|
Constrain to an integer interval [lower_bound, upper_bound] |
|
Constrain to be integer and be less than upper_bound. |
|
Constrain to be integer and be less than or equal to upper_bound. |
|
Constrain to an integer interval (lower_bound, upper_bound) |
|
Constrain to a real interval [lower_bound, upper_bound] |
|
Constrain to be less than upper_bound. |
|
Constrain to be less than upper_bound. |
Constraint to square lower triangular matrices with real and positive diagonal entries. |
|
Constraint to square lower triangular matrices. |
|
Constrain to be greater than or equal to zero. |
|
Constrain to be non-negative integer. |
|
|
Constrain to a real interval (lower_bound, upper_bound) |
|
Constrain to be greater than zero. |
Constraint to positive-definite matrices. |
|
Constrain to be positive integer. |
|
|
Constrain to be a real number. |
|
Constraint to the simplex that rightmost dimension lies on a simplex. |
|
Constraint functor that applies a sequence of constraints constraint_seq at the submatrices at axis, in compatible with |
Constrain to an unit interval [0, 1] |
|
|
alias of |
- class mxnet.gluon.probability.distributions.constraint.Boolean[source]¶
Bases:
ConstraintConstrain to {0, 1}.
- class mxnet.gluon.probability.distributions.constraint.Cat(constraint_seq, axis=0, lengths=None)[source]¶
Bases:
ConstraintConstraint functor that applies a sequence of constraints constraint_seq at the submatrices at axis, each of size lengths[axis], in compatible with
np.concatenate().
- class mxnet.gluon.probability.distributions.constraint.Constraint[source]¶
Bases:
objectBase class for constraints.
A constraint object represents a region over which a variable is valid.
- class mxnet.gluon.probability.distributions.constraint.GreaterThan(lower_bound)[source]¶
Bases:
ConstraintConstrain to be greater than lower_bound.
- class mxnet.gluon.probability.distributions.constraint.GreaterThanEq(lower_bound)[source]¶
Bases:
ConstraintConstrain to be greater than or equal to lower_bound.
- class mxnet.gluon.probability.distributions.constraint.HalfOpenInterval(lower_bound, upper_bound)[source]¶
Bases:
ConstraintConstrain to a real interval [lower_bound, upper_bound)
- class mxnet.gluon.probability.distributions.constraint.IntegerGreaterThan(lower_bound)[source]¶
Bases:
ConstraintConstrain to be integer and be greater than lower_bound.
- class mxnet.gluon.probability.distributions.constraint.IntegerGreaterThanEq(lower_bound)[source]¶
Bases:
ConstraintConstrain to be integer and be greater than or equal to lower_bound.
- class mxnet.gluon.probability.distributions.constraint.IntegerHalfOpenInterval(lower_bound, upper_bound)[source]¶
Bases:
ConstraintConstrain to an integer interval [lower_bound, upper_bound)
- class mxnet.gluon.probability.distributions.constraint.IntegerInterval(lower_bound, upper_bound)[source]¶
Bases:
ConstraintConstrain to an integer interval [lower_bound, upper_bound]
- class mxnet.gluon.probability.distributions.constraint.IntegerLessThan(upper_bound)[source]¶
Bases:
ConstraintConstrain to be integer and be less than upper_bound.
- class mxnet.gluon.probability.distributions.constraint.IntegerLessThanEq(upper_bound)[source]¶
Bases:
ConstraintConstrain to be integer and be less than or equal to upper_bound.
- class mxnet.gluon.probability.distributions.constraint.IntegerOpenInterval(lower_bound, upper_bound)[source]¶
Bases:
ConstraintConstrain to an integer interval (lower_bound, upper_bound)
- class mxnet.gluon.probability.distributions.constraint.Interval(lower_bound, upper_bound)[source]¶
Bases:
ConstraintConstrain to a real interval [lower_bound, upper_bound]
- class mxnet.gluon.probability.distributions.constraint.LessThan(upper_bound)[source]¶
Bases:
ConstraintConstrain to be less than upper_bound.
- class mxnet.gluon.probability.distributions.constraint.LessThanEq(upper_bound)[source]¶
Bases:
ConstraintConstrain to be less than upper_bound.
- class mxnet.gluon.probability.distributions.constraint.LowerCholesky[source]¶
Bases:
ConstraintConstraint to square lower triangular matrices with real and positive diagonal entries.
- class mxnet.gluon.probability.distributions.constraint.LowerTriangular[source]¶
Bases:
ConstraintConstraint to square lower triangular matrices.
- class mxnet.gluon.probability.distributions.constraint.NonNegative[source]¶
Bases:
GreaterThanEqConstrain to be greater than or equal to zero.
- class mxnet.gluon.probability.distributions.constraint.NonNegativeInteger[source]¶
Bases:
IntegerGreaterThanEqConstrain to be non-negative integer.
- class mxnet.gluon.probability.distributions.constraint.OpenInterval(lower_bound, upper_bound)[source]¶
Bases:
ConstraintConstrain to a real interval (lower_bound, upper_bound)
- class mxnet.gluon.probability.distributions.constraint.Positive[source]¶
Bases:
GreaterThanConstrain to be greater than zero.
- class mxnet.gluon.probability.distributions.constraint.PositiveDefinite[source]¶
Bases:
ConstraintConstraint to positive-definite matrices.
- class mxnet.gluon.probability.distributions.constraint.PositiveInteger[source]¶
Bases:
IntegerGreaterThanConstrain to be positive integer.
- class mxnet.gluon.probability.distributions.constraint.Real[source]¶
Bases:
ConstraintConstrain to be a real number. (exclude np.nan)
- class mxnet.gluon.probability.distributions.constraint.Simplex[source]¶
Bases:
ConstraintConstraint to the simplex that rightmost dimension lies on a simplex. x >= 0 and x.sum(-1) == 1.
- class mxnet.gluon.probability.distributions.constraint.Stack(constraint_seq, axis=0)[source]¶
Bases:
ConstraintConstraint functor that applies a sequence of constraints constraint_seq at the submatrices at axis, in compatible with
np.stack().Stack is currently only supported in imperative mode.