gnes.encoder.base moduleΒΆ

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

Bases: gnes.encoder.base.BaseEncoder

encode(data, *args, **kwargs)[source]ΒΆ
Return type:ndarray
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, *args, **kwargs)[source]ΒΆ
Return type:bytes
train(*args, **kwargs)ΒΆ

Train the model, need to be overrided

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

Bases: gnes.base.TrainableBase

encode(data, *args, **kwargs)[source]ΒΆ
Return type:Any
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, *args, **kwargs)[source]ΒΆ
Return type:ndarray
train(*args, **kwargs)ΒΆ

Train the model, need to be overrided

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

Bases: gnes.encoder.base.BaseEncoder

Note that all NumericEncoder can not be used as the first encoder of the pipeline

encode(data, *args, **kwargs)[source]ΒΆ
Return type:ndarray
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, *args, **kwargs)[source]ΒΆ
Return type:Union[Tuple, ndarray]
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, *args, **kwargs)[source]ΒΆ
Return type:Union[ndarray, List[ndarray]]
train(*args, **kwargs)ΒΆ

Train the model, need to be overrided

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

Bases: gnes.base.CompositionalTrainableBase

encode(data, *args, **kwargs)[source]ΒΆ
Return type:Any
train(data, *args, **kwargs)[source]ΒΆ

Train the model, need to be overrided