Unverified Commit 19e79746 authored by Suzukazole's avatar Suzukazole
Browse files

update docs

parent 7f75a278
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,4 +21,5 @@ from deepchem.trans.transformers import ImageTransformer
from deepchem.trans.transformers import DataTransforms
from deepchem.trans.transformers import Transformer
from deepchem.trans.transformers import FlatteningTransformer
from deepchem.trans.transformers import RxnSplitTransformer
from deepchem.trans.duplicate import DuplicateBalancingTransformer
+15 −0
Original line number Diff line number Diff line
@@ -2472,6 +2472,21 @@ class DataTransforms(object):


class RxnSplitTransformer(Transformer):
  """Splits the reaction SMILES input into the source and target strings
  required for machine translation tasks.

  The input is expected to be in the form reactant>reagent>product. The source
  string would be reactants>reagents and the target string would be the products.

  Examples
  -----

  Note
  -----
  This class only transforms the feature field of a reaction dataset like USPTO.

  
  """

  def __init__(self):
    # the transformer would have to split the source and target sequences
+7 −0
Original line number Diff line number Diff line
@@ -108,6 +108,13 @@ DAGTransformer
  :members:
  :inherited-members:

RxnSplitTransformer
^^^^^^^^^^^^^^^^^^^

.. autoclass:: deepchem.trans.RxnSplitTransformer
  :members:
  :inherited-members:

Base Transformer (for develop)
-------------------------------