gt4sd.algorithms.conditional_generation.guacamol.implementation.moses_organ module

Moses Organ implementation.

Summary

Classes:

Organ

Reference

class Organ(model_path, model_config_path, vocab_path, n_samples, n_batch, max_len, device='cpu')[source]

Bases: object

__init__(model_path, model_config_path, vocab_path, n_samples, n_batch, max_len, device='cpu')[source]

Initialize Organ.

Parameters
  • model_path (str) – path from where to load the model.

  • model_config_path (str) – path from where to load the model config.

  • vocab_path (str) – path from where to load the vocab.

  • n_samples (int) – number of samples to sample.

  • n_batch (int) – size of the batch.

  • max_len (int) – max length of SMILES.

  • device (str) – device used for computation. Defaults to cpu.

get_generator()[source]

Create an instance of the OrganGenerator.

Return type

OrganGenerator

Returns

an instance of OrganGenerator.

__dict__ = mappingproxy({'__module__': 'gt4sd.algorithms.conditional_generation.guacamol.implementation.moses_organ', '__init__': <function Organ.__init__>, 'get_generator': <function Organ.get_generator>, '__dict__': <attribute '__dict__' of 'Organ' objects>, '__weakref__': <attribute '__weakref__' of 'Organ' objects>, '__doc__': None, '__annotations__': {}})
__doc__ = None
__module__ = 'gt4sd.algorithms.conditional_generation.guacamol.implementation.moses_organ'
__weakref__

list of weak references to the object (if defined)