Encoder

[source]

Encoder

polyaxon.encoders.base.Encoder(mode, modules, name='Encoder', features=None)

An abstract base class for defining an encoder.

  • Args:
    • mode: str. Specifies if this training, evaluation or prediction. See Modes.
    • name: str. The name of this encoder, used for creating the scope.

_build

_build(self, incoming)

Creates the encoder logic and returns an EncoderSpec.


encode

encode(self, incoming)

Subclasses should implement their logic here.