Belle II Software  release-05-02-19
ClassificationAnalysis Class Reference
Inheritance diagram for ClassificationAnalysis:
Collaboration diagram for ClassificationAnalysis:

Public Member Functions

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)
 

Public Attributes

 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
 

Private Attributes

 _contact
 cached contact person of the truth-classification analysis
 

Detailed Description

Perform truth-classification analysis

Definition at line 19 of file classification.py.

Constructor & Destructor Documentation

◆ __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.

22  def __init__(
23  self,
24  contact,
25  quantity_name,
26  cut_direction=None,
27  cut=None,
28  lower_bound=None,
29  upper_bound=None,
30  outlier_z_score=None,
31  allow_discrete=None,
32  unit=None
33  ):
34  """Compare an estimated quantity to the truths by generating standardized validation plots."""
35 
36 
37  self._contact = contact
38 
39  self.quantity_name = quantity_name
40 
41 
42  self.plots = collections.OrderedDict()
43 
44  self.fom = None
45 
46 
47  self.cut_direction = cut_direction
48 
49  self.cut = cut
50 
51 
52  self.lower_bound = lower_bound
53 
54  self.upper_bound = upper_bound
55 
56  self.outlier_z_score = outlier_z_score
57 
58  self.allow_discrete = allow_discrete
59 
60  self.unit = unit
61 

Member Function Documentation

◆ 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]

def contact (   self)
Get the name of the contact person

Definition at line 470 of file classification.py.

◆ contact() [2/2]

def contact (   self,
  contact 
)
Set the name of the contact person

Definition at line 475 of file classification.py.

◆ write()

def write (   self,
  tdirectory = None 
)
Write the plots to the ROOT TDirectory

Definition at line 485 of file classification.py.


The documentation for this class was generated from the following file: