preprocessor ============ .. py:module:: preprocessor Classes ------- .. autoapisummary:: preprocessor.CodonSequencePreprocessor Module Contents --------------- .. py:class:: CodonSequencePreprocessor(seq_length, embedding_dim, device) Bases: :py:obj:`gfn.preprocessors.Preprocessor` Preprocessor for codon sequence states .. py:attribute:: device .. py:attribute:: embedding .. py:attribute:: embedding_dim .. py:method:: preprocess(states) Transforms the states to the input format for neural networks. :param states: The states to preprocess. :returns: A tensor of shape (*batch_shape, output_dim) containing the preprocessed states. .. py:attribute:: seq_length