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
andthat
are considered structurally equal if the following conditions are satisfied:They contain the same keys (modulo the key prefix which is stripped).
The data in the corresponding value pairs is equal, as defined by the
almost_equal()
function (in this case we call the function withequal_nan=True
, that is, two alignedNaN
values are always considered equal).
Specializes
equals()
for invocations where the first parameter is an instance of theParameterDict
class.- Parameters
this – Objects to compare.
that – Objects to compare.
- Returns
A boolean value indicating whether
this
andthat
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 withvalidated()
initializers.Two blocks
this
andthat
are considered structurally equal if all the conditions ofequals()
are met, and in addition their parameter dictionaries obtained withcollect_params()
are also structurally equal.Specializes
equals()
for invocations where the first parameter is an instance of theHybridBlock
class.- Parameters
this – Objects to compare.
that – Objects to compare.
- Returns
A boolean value indicating whether
this
andthat
are structurally equal.- Return type
bool
See also
equals
Dispatching function.
equals_parameter_dict
Specialization of
equals()
for GluonParameterDict
input arguments.