poli.objective_repository.gfp_cbas.abstract_vae_wrapper.AbstractVAEWrapper

poli.objective_repository.gfp_cbas.abstract_vae_wrapper.AbstractVAEWrapper#

class poli.objective_repository.gfp_cbas.abstract_vae_wrapper.AbstractVAEWrapper#
__init__()#

Methods

__init__()

decode(z[, grad])

Returns an NxLxAA tensor.

decode_samples_from_encoder(x, num_samples)

For a single one hot encoded LxAA vector this method samples around the encoded sequence and returns the decoded sequences.

encode(x)

Turns a one hot encoded LxAA vector into a continuous lower dimensional vector.

encode_sequences(seqs)

get_latent_dimensionality()

get_max_llh_sequence(proba)

get_wildtype_distribution()

Returns a distribution to represent the wild-type.

transform_sequences_to_atoms(x)

Turns a sequence into a Dirac distribution around the sequence. NO ZERO-HANDLING! :param x: a list of sequences encoded according to the problem alphabet :type x: :return: Returns an NxLxAA tensor. :rtype:.