Changeset 11707:48444bf27fd1 in orange for Orange/orng/orngDimRed.py
 Timestamp:
 09/16/13 12:49:56 (7 months ago)
 Branch:
 default
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Orange/orng/orngDimRed.py
r9671 r11707 16 16 #  2003/11/20: returning the parameters of the transform 17 17 18 import numpy , mathutil18 import numpy 19 19 import numpy.linalg as LinearAlgebra 20 20 … … 89 89 return skewness**2 90 90 91 def BoxCoxTransform(vector,lambd=None):92 v = min(vector)+1+vector93 print "shifting by ",min(vector)+194 if lambd==None:95 # find the value of lambda that will minimize skew96 lambd = mathutil.minimum(_BCskewness(v))97 print "bestfitting lambda = ",lambd98 return _BC(v,lambd)91 # def BoxCoxTransform(vector,lambd=None): 92 # v = min(vector)+1+vector 93 # print "shifting by ",min(vector)+1 94 # if lambd==None: 95 # # find the value of lambda that will minimize skew 96 # lambd = mathutil.minimum(_BCskewness(v)) 97 # print "bestfitting lambda = ",lambd 98 # return _BC(v,lambd) 99 99 100 100 def RankConversion(vector,reverse=0): … … 140 140 print "variance scaling" 141 141 print VarianceScaling(v) 142 print "BoxCox"143 print BoxCoxTransform(v)142 # print "BoxCox" 143 # print BoxCoxTransform(v)
Note: See TracChangeset
for help on using the changeset viewer.