Public Member Functions | |
__init__ (self) | |
create_result_dataframe (self) | |
fit_result_parameters (self) | |
train (self, data) | |
plot_fit_result (self, data) | |
plot_grouped_result (self, data) | |
create_dedx_bins (self, data) | |
create_p_bins (self, data) | |
use_only_the_highest_values (self, data, number_of_values=None) | |
create_fit_data (self, dedx_bin) | |
fit_p_to_dedx_bin (self, dedx_bin) | |
test (self, data) | |
Public Attributes | |
train_function = train_function | |
this class's training function | |
result_function = result_function | |
cached copy of the result function | |
dict | result_parameters_for_each_dedx_bin = {} |
cached copy of the dictionary of fitting parameters for each dE/dx bin | |
use_sigma_for_result_fitting = use_sigma_for_result_fitting | |
cached copy of the flag to add mean+/-sigma values to the output Dataframe | |
dedx_estimator_parameters | |
cached copies of the fit parameters and estimator function | |
dedx_estimator_function = None | |
by default, the dE/dx-particle-identification trainer has not run yet | |
str | dedx_column = "dedx" |
the default data column is 'dedx' | |
Static Public Attributes | |
int | number_of_bins_in_dedx = 20 |
number of dE/dx bins | |
int | number_of_bins_in_p = 29 |
number of track-momentum bins | |
int | number_of_head_values_used_to_fit = 20 |
number of head values in fit | |
Train a neural network for dE/dx-based particle identification using only the median values
__init__ | ( | self | ) |
Constructor
Definition at line 357 of file train.py.
|
inherited |
Construct the dE/dx bins and then populate them with the data
Definition at line 52 of file train.py.
|
inherited |
Fit track-momentum values
Definition at line 74 of file train.py.
|
inherited |
Construct the momentum bins and then populate them with the data
Definition at line 61 of file train.py.
|
inherited |
Fit for the mean dE/dx and standard deviation, return the fit Dataframe
Definition at line 107 of file train.py.
|
inherited |
Fit the track-momentum values in the selected dE/dx bin, then train on the fitted values
Definition at line 86 of file train.py.
|
inherited |
Define the parameters for the fit, assign initial guesses
Definition at line 126 of file train.py.
|
inherited |
Plot the fitted results
Definition at line 154 of file train.py.
|
inherited |
Plot the fitted grouped results
Reimplemented in FunctionFittedGroupedDEDXEstimatorTrainer.
Definition at line 169 of file train.py.
|
inherited |
Get the trained neural-network output value for test data
Reimplemented in MVADEDXEstimationTrainer.
Definition at line 34 of file train.py.
|
inherited |
Train the neural network using curated data
Reimplemented from DEDXEstimationTrainer.
Definition at line 140 of file train.py.
|
inherited |
Sort the data then select only the highest N values
Definition at line 67 of file train.py.
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
inherited |
|
inherited |
train_function = train_function |
|
inherited |