gnes.encoder.base module

class gnes.encoder.base.BaseAudioEncoder(*args, **kwargs)[source]

Bases: gnes.encoder.base.BaseEncoder

encode(data: List[np.ndarray], *args, **kwargs) → numpy.ndarray[source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.encoder.base.BaseBinaryEncoder(*args, **kwargs)[source]

Bases: gnes.encoder.base.BaseEncoder

encode(data: numpy.ndarray, *args, **kwargs) → bytes[source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.encoder.base.BaseEncoder(*args, **kwargs)[source]

Bases: gnes.base.TrainableBase

encode(data: Any, *args, **kwargs) → Any[source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.encoder.base.BaseImageEncoder(*args, **kwargs)[source]

Bases: gnes.encoder.base.BaseEncoder

encode(img: List[np.ndarray], *args, **kwargs) → numpy.ndarray[source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.encoder.base.BaseNumericEncoder(*args, **kwargs)[source]

Bases: gnes.encoder.base.BaseEncoder

encode(text: numpy.ndarray, *args, **kwargs) → numpy.ndarray[source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.encoder.base.BaseTextEncoder(*args, **kwargs)[source]

Bases: gnes.encoder.base.BaseEncoder

encode(text: List[str], *args, **kwargs) → numpy.ndarray[source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.encoder.base.BaseVideoEncoder(*args, **kwargs)[source]

Bases: gnes.encoder.base.BaseEncoder

encode(data: List[np.ndarray], *args, **kwargs) → numpy.ndarray[source]
train(*args, **kwargs)

Train the model, need to be overrided

class gnes.encoder.base.PipelineEncoder(*args, **kwargs)[source]

Bases: gnes.base.CompositionalTrainableBase

encode(data: Any, *args, **kwargs) → Any[source]
train(data, *args, **kwargs)[source]

Train the model, need to be overrided