gnes.encoder.numeric.pca module

class gnes.encoder.numeric.pca.PCAEncoder(output_dim, whiten=False, *args, **kwargs)[source]

Bases: gnes.encoder.base.BaseNumericEncoder

batch_size = 2048
encode(vecs, *args, **kwargs)[source]
Return type:ndarray
post_init()[source]

Declare class attributes/members that can not be serialized in standard way

train(vecs, *args, **kwargs)[source]

Train the model, need to be overrided

Return type:None
class gnes.encoder.numeric.pca.PCALocalEncoder(output_dim, num_locals, *args, **kwargs)[source]

Bases: gnes.encoder.base.BaseNumericEncoder

batch_size = 2048
encode(vecs, *args, **kwargs)[source]
Return type:ndarray
train(vecs, *args, **kwargs)[source]

Train the model, need to be overrided

Return type:None