rdkit.ML.Data.Transforms

Package rdkit :: Package ML :: Package Data :: Module Transforms |
[hide private]
[frames] | no frames]

# Source Code for Module rdkit.ML.Data.Transforms

     1  #
     2  #  Copyright (C) 2002  greg Landrum and Rational Discovery LLC
     3  #  All Rights Reserved
     4  #
     5
     6
     7 -def _CenterTForm(dataSet):
     8    """ INTERNAL USE ONLY
     9
    10    """
    11    pass
    12
    13
    14 -def _NormalizeTForm(dataSet):
    15    """ INTERNAL USE ONLY
    16
    17    """
    18    pass
    19
    20
    21 -def _StandardTForm(dataSet):
    22    """ INTERNAL USE ONLY
    23
    24    """
    25    pass
    26
    27
    28  _availTransforms = [
    29    ('Center', _CenterTForm, 'translates so that mean(x)=0'),
    30    ('Normalize', _NormalizeTForm, 'scales so that dot(x,x)=1'),
    31    ('Standardize', _StandardTForm, 'scales so that dev(x)=0'),
    32  ]
    33
    34
    35 -def GetAvailTransforms():
    36    """ returns the list of available data transformations
    37
    38     **Returns**
    39
    40       a list of 3-tuples
    41
    42         1) name of the transform (text)
    43
    44         2) function describing the transform (should take an
    45            _MLDataSet_ as an argument)
    46
    47         3) description of the transform (text)
    48
    49    """
    50    global _availTransforms
    51    return _availTransforms
    52