CMS 3D CMS Logo

Functions
isotrackTrainRegressor Namespace Reference

Functions

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

Function Documentation

◆ fac0()

def isotrackTrainRegressor.fac0 (   jeta)

marinas correction form

Definition at line 101 of file isotrackTrainRegressor.py.

References createfilelist.int.

Referenced by MonopoleSteppingAction.update().

101 def fac0(jeta):
102  PU_IETA_1 = 9
103  PU_IETA_2 = 16
104  PU_IETA_3 = 25
105  idx = (int(jeta >= PU_IETA_1) + int(jeta >= PU_IETA_2) + int(jeta >= PU_IETA_3))
106  return a0[idx]
def fac0(jeta)
marinas correction form

◆ fac1()

def isotrackTrainRegressor.fac1 (   jeta)

Definition at line 107 of file isotrackTrainRegressor.py.

References createfilelist.int.

Referenced by algorithm(), DDBHMAngular.execute(), and MonopoleSteppingAction.update().

107 def fac1(jeta):
108  PU_IETA_1 = 9
109  PU_IETA_2 = 16
110  PU_IETA_3 = 25
111  idx = (int(jeta >= PU_IETA_1) + int(jeta >= PU_IETA_2) + int(jeta >= PU_IETA_3))
112  return a1[idx]

◆ fac2()

def isotrackTrainRegressor.fac2 (   jeta)

Definition at line 113 of file isotrackTrainRegressor.py.

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

Referenced by algorithm(), DDBHMAngular.execute(), and MonopoleSteppingAction.update().

113 def fac2(jeta):
114  PU_IETA_1 = 9
115  PU_IETA_2 = 16
116  PU_IETA_3 = 25
117  idx = (int(jeta >= PU_IETA_1) + int(jeta >= PU_IETA_2) + int(jeta >= PU_IETA_3))
118  return a2[idx]
119 

◆ propweights()

def isotrackTrainRegressor.propweights (   y_true)

Definition at line 135 of file isotrackTrainRegressor.py.

References funct.abs().

135 def propweights(y_true):
136  weight = np.copy(y_true)
137  weight[abs(y_true - meany) > 0] = 1.90*abs(y_true - meany)/stdy #1.25
138 # weight[abs(y_true - meany) > stdy] = 1.75*abs((weight[abs(y_true - meany) > stdy]) - meany)/(stdy)
139  weight[abs(y_true - meany) < stdy] = 1
140  return weight
141 
142 
143 # In[6]:
144 
145 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22