![]() |
Belle II Software development
|
Public Member Functions | |
__init__ (self, state=None) | |
fit (self, x, number_of_bins=100) | |
apply (self, x) | |
export_state (self) | |
Public Attributes | |
dict | state = {'binning_array': [], 'number_of_bins': 0} |
State of the class. | |
This class provides a fast implementation of equal frequency binning. In Equal frequency binning the binning is chosen in a way that every bin has the same number of entries. An example with a Neural Network can be found in: mva/examples/keras/preprocessing.py
Definition at line 14 of file preprocessing.py.
__init__ | ( | self, | |
state = None ) |
Init the class. If you saved a state before and wants to rebuild the class use the state parameter.
Definition at line 21 of file preprocessing.py.
apply | ( | self, | |
x ) |
Bin a dataset
Definition at line 41 of file preprocessing.py.
export_state | ( | self | ) |
Returns a pickable dictionary to save the state of the class in a mva weightfile
Definition at line 50 of file preprocessing.py.
fit | ( | self, | |
x, | |||
number_of_bins = 100 ) |
Do the fitting -> calculate binning boundaries
Definition at line 32 of file preprocessing.py.
dict state = {'binning_array': [], 'number_of_bins': 0} |