Belle II Software development
|
Public Member Functions | |
def | __init__ (self, identifier) |
def | train_teacher (self, datafiles, treename, general_options=None, specific_options=None) |
def | apply_expert (self, datafiles, treename) |
Public Attributes | |
identifier | |
Identifier of the method. | |
weightfile | |
Weightfile of the method. | |
general_options | |
General options of the method. | |
specific_options | |
Specific options of the method. | |
importances | |
Dictionary of the variable importances calculated by the method. | |
variables | |
List of variables sorted by their importance. | |
root_variables | |
List of the variable importances calculated by the method, but with the root compatible variable names. | |
root_importances | |
Dictionary of the variables sorted by their importance but with root compatoble variable names. | |
description | |
Description of the method as a xml string returned by basf2_mva.info. | |
spectators | |
List of spectators. | |
root_spectators | |
List of spectators with root compatible names. | |
Wrapper class providing an interface to the method stored under the given identifier. It loads the Options, can apply the expert and train new ones using the current as a prototype. This class is used by the basf_mva_evaluation tools
Definition at line 129 of file basf2_mva_util.py.
def __init__ | ( | self, | |
identifier | |||
) |
Load a method stored under the given identifier @param identifier identifying the method
Definition at line 136 of file basf2_mva_util.py.
def apply_expert | ( | self, | |
datafiles, | |||
treename | |||
) |
Apply the expert of the method to data and return the calculated probability and the target @param datafiles the datafiles @param treename the name of the tree containing the data
Definition at line 236 of file basf2_mva_util.py.
def train_teacher | ( | self, | |
datafiles, | |||
treename, | |||
general_options = None , |
|||
specific_options = None |
|||
) |
Train a new method using this method as a prototype @param datafiles the training datafiles @param treename the name of the tree containing the training data @param general_options general options given to basf2_mva.teacher (if None the options of this method are used) @param specific_options specific options given to basf2_mva.teacher (if None the options of this method are used)
Definition at line 206 of file basf2_mva_util.py.
description |
Description of the method as a xml string returned by basf2_mva.info.
Definition at line 200 of file basf2_mva_util.py.
general_options |
General options of the method.
Definition at line 150 of file basf2_mva_util.py.
identifier |
Identifier of the method.
Definition at line 146 of file basf2_mva_util.py.
importances |
Dictionary of the variable importances calculated by the method.
Definition at line 192 of file basf2_mva_util.py.
root_importances |
Dictionary of the variables sorted by their importance but with root compatoble variable names.
Definition at line 198 of file basf2_mva_util.py.
root_spectators |
List of spectators with root compatible names.
Definition at line 204 of file basf2_mva_util.py.
root_variables |
List of the variable importances calculated by the method, but with the root compatible variable names.
Definition at line 196 of file basf2_mva_util.py.
specific_options |
Specific options of the method.
Definition at line 164 of file basf2_mva_util.py.
spectators |
List of spectators.
Definition at line 202 of file basf2_mva_util.py.
variables |
List of variables sorted by their importance.
Definition at line 194 of file basf2_mva_util.py.
weightfile |
Weightfile of the method.
Definition at line 148 of file basf2_mva_util.py.