Belle II Software  release-08-01-10
CutClassifier Class Reference
Inheritance diagram for CutClassifier:
Collaboration diagram for CutClassifier:

Public Member Functions

def __init__ (self, cut_direction=1, cut_value=np.nan)
 
def cut_direction (self)
 
def cut_value (self)
 
def clone (self)
 
def determine_cut_value (self, estimates, truths)
 
def fit (self, estimates, truths)
 
def predict (self, estimates)
 
def describe (self, estimates, truths)
 

Public Attributes

 cut_direction_
 cached copy of the cut direction (< or >)
 
 cut_value_
 cached copy of the cut threshold
 

Detailed Description

Simple classifier cutting on a single variable

Definition at line 501 of file classification.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  cut_direction = 1,
  cut_value = np.nan 
)
Constructor

Reimplemented in CutAtBackgroundRejectionClassifier.

Definition at line 505 of file classification.py.

Member Function Documentation

◆ clone()

def clone (   self)
Return a clone of this object

Definition at line 522 of file classification.py.

◆ cut_direction()

def cut_direction (   self)
Get the value of the cut direction

Definition at line 513 of file classification.py.

◆ cut_value()

def cut_value (   self)
Get the value of the cut threshold

Definition at line 518 of file classification.py.

◆ describe()

def describe (   self,
  estimates,
  truths 
)
Describe the cut selection and its efficiency, purity and background rejection

Definition at line 547 of file classification.py.

◆ determine_cut_value()

def determine_cut_value (   self,
  estimates,
  truths 
)
Get the value of the cut threshold

Reimplemented in CutAtBackgroundRejectionClassifier.

Definition at line 526 of file classification.py.

◆ fit()

def fit (   self,
  estimates,
  truths 
)
Fit to determine the cut threshold

Definition at line 530 of file classification.py.

◆ predict()

def predict (   self,
  estimates 
)
Select estimates that satisfy the cut

Definition at line 535 of file classification.py.


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