Package rdkit :: Package ML :: Package Cluster :: Module Standardize
[hide private]
[frames] | no frames]

Source Code for Module rdkit.ML.Cluster.Standardize

 1  # $Id$ 
 2  # 
 3  # Copyright (C) 2001-2008  greg Landrum 
 4  # 
 5  #   @@ All Rights Reserved @@ 
 6  #  This file is part of the RDKit. 
 7  #  The contents are covered by the terms of the BSD license 
 8  #  which is included in the file license.txt, found at the root 
 9  #  of the RDKit source tree. 
10  # 
11  """ contains code for standardization of data matrices for clustering 
12   
13   
14  """ 
15  from rdkit.ML.Data import Stats 
16   
17 -def StdDev(mat):
18 """ the standard deviation classifier 19 20 This uses _ML.Data.Stats.StandardizeMatrix()_ to do the work 21 22 """ 23 return Stats.StandardizeMatrix(mat)
24 25 methods = [ 26 ("None",lambda x:x,"No Standardization"), 27 ("Standard Deviation",StdDev,"Use the standard deviation"), 28 ] 29