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.

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]

References createfilelist.int.

Referenced by MonopoleSteppingAction.update().

◆ fac1()

def isotrackTrainRegressor.fac1 (   jeta)

Definition at line 107 of file isotrackTrainRegressor.py.

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]

References createfilelist.int.

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

◆ fac2()

def isotrackTrainRegressor.fac2 (   jeta)

Definition at line 113 of file isotrackTrainRegressor.py.

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 

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

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

◆ propweights()

def isotrackTrainRegressor.propweights (   y_true)

Definition at line 135 of file isotrackTrainRegressor.py.

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 

References funct.abs().

isotrackTrainRegressor.fac2
def fac2(jeta)
Definition: isotrackTrainRegressor.py:113
isotrackTrainRegressor.propweights
def propweights(y_true)
Definition: isotrackTrainRegressor.py:135
createfilelist.int
int
Definition: createfilelist.py:10
isotrackTrainRegressor.fac0
def fac0(jeta)
marinas correction form
Definition: isotrackTrainRegressor.py:101
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
isotrackTrainRegressor.fac1
def fac1(jeta)
Definition: isotrackTrainRegressor.py:107