|
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 19 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 22 of file classification.py.
34 """Compare an estimated quantity to the truths by generating standardized validation plots."""
37 self._contact = contact
39 self.quantity_name = quantity_name
42 self.plots = collections.OrderedDict()
47 self.cut_direction = cut_direction
52 self.lower_bound = lower_bound
54 self.upper_bound = upper_bound
56 self.outlier_z_score = outlier_z_score
58 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 62 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: