|
def | __init__ (self, quantity_name, bin_spacing, bin_name, bin_unit=None, unit=None, outlier_z_score=None, contact='', plot_name=None, plot_title=None, min_required_entries=None, plot_name_prefix='', plot_name_postfix='', plot_title_postfix='', referenceFileName=None) |
|
def | analyse (self, bin_values, truths, estimates, which_plots=None, is_expert=None) |
|
def | contact (self) |
|
def | contact (self, contact) |
|
def | write (self, tDirectory=None) |
|
|
| quantity_name |
| cached name of the quantity in the truth-classification analysis
|
|
| unit |
| cached measurement unit for this truth-classification analysis
|
|
| bin_spacing |
| cached value of the histogram bin spacing
|
|
| bin_name |
| cached value of the bin name
|
|
| bin_unit |
| cached value of the bin measurement unit
|
|
| outlier_z_score |
| cached value of the Z-score (for outlier detection)
|
|
| min_required_entries |
| cached value of the minimum number of entries
|
|
| plot_name |
| cached value of the base name of the plot
|
|
| plot_title |
| cached value of the plot title
|
|
| plot_name_prefix |
| cached value of the prefix prepended to the plot name
|
|
| plot_name_postfix |
| cached value of the suffix appended to the plot name
|
|
| plot_title_postfix |
| cached value of the suffix appended to the plot title
|
|
| plots |
| cached value of the dictionary of plots to be created
|
|
| referenceFileName |
| cached value of the reference filename
|
|
| contact |
| Forward the contact to all plots by reassigning the contact.
|
|
|
| _contact |
| cached value of the contact person
|
|
Perform resolution analysis
Definition at line 26 of file resolution.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
quantity_name, |
|
|
|
bin_spacing, |
|
|
|
bin_name, |
|
|
|
bin_unit = None , |
|
|
|
unit = None , |
|
|
|
outlier_z_score = None , |
|
|
|
contact = '' , |
|
|
|
plot_name = None , |
|
|
|
plot_title = None , |
|
|
|
min_required_entries = None , |
|
|
|
plot_name_prefix = '' , |
|
|
|
plot_name_postfix = '' , |
|
|
|
plot_title_postfix = '' , |
|
|
|
referenceFileName = None |
|
) |
| |
Performs a comparison of an estimated quantity to their truths by generating standardized validation plots.
Definition at line 45 of file resolution.py.
62 """Performs a comparison of an estimated quantity to their truths by generating standardized validation plots."""
65 self.quantity_name = quantity_name
67 self.unit = unit
or get_unit(quantity_name)
69 self.bin_spacing = bin_spacing
71 self.bin_name = bin_name
73 self.bin_unit = bin_unit
75 if outlier_z_score
is None:
77 self.outlier_z_score = self.default_outlier_z_score
79 self.outlier_z_score = outlier_z_score
82 self.min_required_entries = min_required_entries
83 if self.min_required_entries
is None:
84 self.min_required_entries = self.default_min_required_entries
87 self.plot_name = plot_name
89 self.plot_title = plot_title
92 self.plot_name_prefix = plot_name_prefix
or root_save_name(quantity_name)
94 self.plot_name_postfix = plot_name_postfix
96 self.plot_title_postfix = plot_title_postfix
99 self._contact = contact
101 self.plots = collections.OrderedDict()
104 self.referenceFileName = referenceFileName
◆ analyse()
def analyse |
( |
|
self, |
|
|
|
bin_values, |
|
|
|
truths, |
|
|
|
estimates, |
|
|
|
which_plots = None , |
|
|
|
is_expert = None |
|
) |
| |
Compares the concrete estimate to the truth and generates plots of the resolution
Parameters
----------
bin_values : array_like(float
The parametr used for binning
truths : array_like(float)
Sample of the true values
estimates : array_like(float)
Corresponding estimations
Definition at line 106 of file resolution.py.
◆ contact() [1/2]
◆ contact() [2/2]
def contact |
( |
|
self, |
|
|
|
contact |
|
) |
| |
◆ write()
def write |
( |
|
self, |
|
|
|
tDirectory = None |
|
) |
| |
Write all validation plot to the given Root directory
Definition at line 253 of file resolution.py.
◆ default_which_plots
Initial value:
default list of plots to create
Definition at line 38 of file resolution.py.
The documentation for this class was generated from the following file: