gluonts.mx.component module

gluonts.mx.component.equals_parameter_dict(this: mxnet.gluon.parameter.ParameterDict, that: mxnet.gluon.parameter.ParameterDict) → bool[source]

Structural equality check between two ParameterDict objects.

Two parameter dictionaries this and that are considered structurally equal if the following conditions are satisfied:

  1. They contain the same keys (modulo the key prefix which is stripped).

  2. The data in the corresponding value pairs is equal, as defined by the almost_equal() function (in this case we call the function with equal_nan=True, that is, two aligned NaN values are always considered equal).

Specializes equals() for invocations where the first parameter is an instance of the ParameterDict class.

Parameters

that (this,) – Objects to compare.

Returns

A boolean value indicating whether this and that are structurally equal.

Return type

bool

See also

equals()

Dispatching function.

gluonts.mx.component.equals_representable_block(this: mxnet.gluon.block.HybridBlock, that: mxnet.gluon.block.HybridBlock) → bool[source]

Structural equality check between two HybridBlock objects with validated() initializers.

Two blocks this and that are considered structurally equal if all the conditions of equals() are met, and in addition their parameter dictionaries obtained with collect_params() are also structurally equal.

Specializes equals() for invocations where the first parameter is an instance of the HybridBlock class.

Parameters

that (this,) – Objects to compare.

Returns

A boolean value indicating whether this and that are structurally equal.

Return type

bool

See also

equals()

Dispatching function.

equals_parameter_dict()

Specialization of equals() for Gluon ParameterDict input arguments.

gluonts.mx.component.skip_encoding_mx_gluon_parameterdict(v: mxnet.gluon.parameter.ParameterDict) → bool[source]