TupleOutputMixIn#

class pytorch_forecasting.utils.TupleOutputMixIn[source]#

Bases: object

MixIn to give output a namedtuple-like access capabilities with to_network_output() function.

Inherited-members:

Methods

to_network_output(**results)

Convert output into a named (and immuatable) tuple.

to_network_output(**results)[source]#

Convert output into a named (and immuatable) tuple.

This allows tracing the modules as graphs and prevents modifying the output.

Returns:

named tuple