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