CMS 3D CMS Logo

Functions
isotrackTrainRegressorNoOptimization Namespace Reference

Functions

def fac0 (jeta)
 marinas correction form More...
 
def fac1 (jeta)
 
def fac2 (jeta)
 
def propweights (y_true)
 

Function Documentation

◆ fac0()

def isotrackTrainRegressorNoOptimization.fac0 (   jeta)

marinas correction form

Definition at line 135 of file isotrackTrainRegressorNoOptimization.py.

References createfilelist.int.

135 def fac0(jeta):
136  PU_IETA_1 = 9
137  PU_IETA_2 = 16
138  PU_IETA_3 = 25
139  idx = (int(jeta >= PU_IETA_1) + int(jeta >= PU_IETA_2) + int(jeta >= PU_IETA_3))
140  return a0[idx]

◆ fac1()

def isotrackTrainRegressorNoOptimization.fac1 (   jeta)

Definition at line 141 of file isotrackTrainRegressorNoOptimization.py.

References createfilelist.int.

141 def fac1(jeta):
142  PU_IETA_1 = 9
143  PU_IETA_2 = 16
144  PU_IETA_3 = 25
145  idx = (int(jeta >= PU_IETA_1) + int(jeta >= PU_IETA_2) + int(jeta >= PU_IETA_3))
146  return a1[idx]

◆ fac2()

def isotrackTrainRegressorNoOptimization.fac2 (   jeta)

Definition at line 147 of file isotrackTrainRegressorNoOptimization.py.

References funct.abs(), and createfilelist.int.

147 def fac2(jeta):
148  PU_IETA_1 = 9
149  PU_IETA_2 = 16
150  PU_IETA_3 = 25
151  idx = (int(jeta >= PU_IETA_1) + int(jeta >= PU_IETA_2) + int(jeta >= PU_IETA_3))
152  return a2[idx]
153 
154 
155 # In[44]:
156 
157 

◆ propweights()

def isotrackTrainRegressorNoOptimization.propweights (   y_true)

Definition at line 174 of file isotrackTrainRegressorNoOptimization.py.

References funct.abs().

174 def propweights(y_true):
175  weight = np.copy(y_true)
176  weight[abs(y_true - meany) > 0] = 1.90*abs(y_true - meany)/stdy #1.25
177 # weight[abs(y_true - meany) > stdy] = 1.75*abs((weight[abs(y_true - meany) > stdy]) - meany)/(stdy)
178  weight[abs(y_true - meany) < stdy] = 1
179  print ("wieght : ", weight)
180  return weight
181 
182 
183 # In[46]:
184 
185 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22