|
def | __init__ (self, contact, quantity_name, cut_direction=None, cut=None, lower_bound=None, upper_bound=None, outlier_z_score=None, allow_discrete=None, unit=None) |
|
def | analyse (self, estimates, truths, auxiliaries={}) |
|
def | contact (self) |
|
def | contact (self, contact) |
|
def | write (self, tdirectory=None) |
|
|
| quantity_name |
| cached name of the quantity in the truth-classification analysis
|
|
| plots |
| cached dictionary of plots in the truth-classification analysis
|
|
| fom |
| cached value of the figure of merit in the truth-classification analysis
|
|
| cut_direction |
| cached value of the cut direction (< or >) in the truth-classification analysis
|
|
| cut |
| cached value of the threshold in the truth-classification analysis
|
|
| lower_bound |
| cached lower bound for this truth-classification analysis
|
|
| upper_bound |
| cached upper bound for this truth-classification analysis
|
|
| outlier_z_score |
| cached Z-score (for outlier detection) for this truth-classification analysis
|
|
| allow_discrete |
| cached discrete-value flag for this truth-classification analysis
|
|
| unit |
| cached measurement unit for this truth-classification analysis
|
|
| contact |
| contact person
|
|
|
| _contact |
| cached contact person of the truth-classification analysis
|
|
Perform truth-classification analysis
Definition at line 26 of file classification.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
contact, |
|
|
|
quantity_name, |
|
|
|
cut_direction = None , |
|
|
|
cut = None , |
|
|
|
lower_bound = None , |
|
|
|
upper_bound = None , |
|
|
|
outlier_z_score = None , |
|
|
|
allow_discrete = None , |
|
|
|
unit = None |
|
) |
| |
Compare an estimated quantity to the truths by generating standardized validation plots.
Definition at line 29 of file classification.py.
41 """Compare an estimated quantity to the truths by generating standardized validation plots."""
44 self._contact = contact
46 self.quantity_name = quantity_name
49 self.plots = collections.OrderedDict()
54 self.cut_direction = cut_direction
59 self.lower_bound = lower_bound
61 self.upper_bound = upper_bound
63 self.outlier_z_score = outlier_z_score
65 self.allow_discrete = allow_discrete
◆ analyse()
def analyse |
( |
|
self, |
|
|
|
estimates, |
|
|
|
truths, |
|
|
|
auxiliaries = {} |
|
) |
| |
Compares the concrete estimate to the truth and efficiency, purity and background rejection
as figure of merit and plots the selection as a stacked plot over the truths.
Parameters
----------
estimates : array_like
Selection variable to compare to the truths
truths : array_like
Binary true class values.
Definition at line 69 of file classification.py.
◆ contact() [1/2]
◆ contact() [2/2]
def contact |
( |
|
self, |
|
|
|
contact |
|
) |
| |
◆ write()
def write |
( |
|
self, |
|
|
|
tdirectory = None |
|
) |
| |
The documentation for this class was generated from the following file: