Belle II Software development
|
Public Member Functions | |
def | __init__ (self, figure=None) |
def | add (self, data, column, train_mask, test_mask, signal_mask, bckgrd_mask, weight_column=None) |
def | finish (self) |
Public Attributes | |
figure | |
create figure | |
axis | |
define first subplot | |
axis_d1 | |
define second subplot | |
axis_d2 | |
define third subplot | |
Static Public Attributes | |
None | figure = None |
figure which is used to draw | |
None | axis = None |
Main axis which is used to draw. | |
None | axis_d1 = None |
Axis which shows the difference between training and test signal. | |
None | axis_d2 = None |
Axis which shows the difference between training and test background. | |
Create TMVA-like overtraining control plot for a classification training
Definition at line 859 of file plotting.py.
def __init__ | ( | self, | |
figure = None |
|||
) |
Creates a new figure if None is given, sets the default plot parameters @param figure default draw figure which is used
Reimplemented from Plotter.
Definition at line 873 of file plotting.py.
def add | ( | self, | |
data, | |||
column, | |||
train_mask, | |||
test_mask, | |||
signal_mask, | |||
bckgrd_mask, | |||
weight_column = None |
|||
) |
Add a new overtraining plot, I recommend to draw only one overtraining plot at the time, otherwise there are too many curves in the plot to recognize anything in the plot. @param data pandas.DataFrame containing all data @param column which is used to calculate distribution histogram @param train_mask boolean numpy.array defining which events are training events @param test_mask boolean numpy.array defining which events are test events @param signal_mask boolean numpy.array defining which events are signal events @param bckgrd_mask boolean numpy.array defining which events are background events @param weight_column column in data containing the weights for each event
Reimplemented from Plotter.
Definition at line 895 of file plotting.py.
def finish | ( | self | ) |
Sets limits, title, axis-labels and legend of the plot
Reimplemented from Plotter.
Definition at line 974 of file plotting.py.
|
static |
Main axis which is used to draw.
Definition at line 867 of file plotting.py.
axis |
define first subplot
Definition at line 887 of file plotting.py.
|
static |
Axis which shows the difference between training and test signal.
Definition at line 869 of file plotting.py.
axis_d1 |
define second subplot
Definition at line 889 of file plotting.py.
|
static |
Axis which shows the difference between training and test background.
Definition at line 871 of file plotting.py.
axis_d2 |
define third subplot
Definition at line 891 of file plotting.py.
|
static |
figure which is used to draw
Definition at line 865 of file plotting.py.
figure |
create figure
Definition at line 880 of file plotting.py.