|
def | __init__ (self, z, y) |
|
def | get_signal_pdf (self, X) |
|
def | get_bckgrd_pdf (self, X) |
|
def | get_signal_cdf (self, X) |
|
def | get_bckgrd_cdf (self, X) |
|
def | get_prior (self, X) |
|
def | get_boost_weights (self, X) |
|
def | get_uncorrelation_weights (self, X, boost_prediction) |
|
Calculates prior from signal and background pdfs of the fit variable
Definition at line 19 of file dplot.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
z, |
|
|
|
y |
|
) |
| |
Constructor of a new prior distribution
@param z fit variable
@param y target variable
Definition at line 24 of file dplot.py.
24 def __init__(self, z, y):
26 Constructor of a new prior distribution
28 @param y target variable
31 self.signal_cdf, self.signal_pdf, self.signal_bins = calculate_cdf_and_pdf(z[y == 1])
33 self.bckgrd_cdf, self.bckgrd_pdf, self.bckgrd_bins = calculate_cdf_and_pdf(z[y == 0])
35 self.bckgrd_pdf[0] = self.bckgrd_pdf[-1] = 1
◆ get_bckgrd_cdf()
def get_bckgrd_cdf |
( |
|
self, |
|
|
|
X |
|
) |
| |
Calculate background cdf for given fit variable value
@param X nd-array containing fit variable values
Definition at line 58 of file dplot.py.
◆ get_bckgrd_pdf()
def get_bckgrd_pdf |
( |
|
self, |
|
|
|
X |
|
) |
| |
Calculate background pdf for given fit variable value
@param X nd-array containing fit variable values
Definition at line 44 of file dplot.py.
◆ get_boost_weights()
def get_boost_weights |
( |
|
self, |
|
|
|
X |
|
) |
| |
Calculate boost weights used in dplot boost training step
@param X nd-array containing fit variable values
Definition at line 74 of file dplot.py.
◆ get_prior()
def get_prior |
( |
|
self, |
|
|
|
X |
|
) |
| |
Calculate prior signal probability for given fit variable value
@param X nd-array containing fit variable values
Definition at line 65 of file dplot.py.
◆ get_signal_cdf()
def get_signal_cdf |
( |
|
self, |
|
|
|
X |
|
) |
| |
Calculate signal cdf for given fit variable value
@param X nd-array containing fit variable values
Definition at line 51 of file dplot.py.
◆ get_signal_pdf()
def get_signal_pdf |
( |
|
self, |
|
|
|
X |
|
) |
| |
Calculate signal pdf for given fit variable value
@param X nd-array containing fit variable values
Definition at line 37 of file dplot.py.
◆ get_uncorrelation_weights()
def get_uncorrelation_weights |
( |
|
self, |
|
|
|
X, |
|
|
|
boost_prediction |
|
) |
| |
Calculate uncorrelation weights used in dplot classifier training step
@param X nd-array containing fit variable values
@param boost_prediction output of the boost classifier
Definition at line 86 of file dplot.py.
The documentation for this class was generated from the following file: