src.report.receptive_fields_distribution_report
Classes
|
- class src.report.receptive_fields_distribution_report.ReceptiveFieldsDistributionReport(**kwargs)
- Author:
Alberto M. Esmoris Pena
Class to handle reports related to the distribution of predicted or expected values in the receptive fields. See
Report- Variables:
y_rf (
np.ndarray) – The expected value for each point for each receptive field.yhat_rf (
np.ndarray) – The predicted value for each point for each receptive field.class_names (list) – The names representing each class.
- __init__(**kwargs)
Initialize an instance of ReceptiveFieldsDistributionReport.
- Parameters:
kwargs – The key-word arguments.
- Keyword Arguments:
y_rf (
np.ndarray) – The expected value for each point for each receptive field.yhat_rf (
np.ndarray) – The predicted value for each point for each receptive field.class_names (
np.ndarray) – The name representing each class.
- static count(rf, cidx, num_cases, num_rf)
Method to count the cases among all receptive fields and also how many receptive fields contain at least a single case of current class.
- Parameters:
rf – The receptive field (either for expected or predicted values).
cidx – The index of the current class to consider for counting.
num_cases – How many total cases, considering all classes, there are.
num_rf – How any receptive fields there are.
- Returns:
The absolute frequency of cases of current class among all receptive fields, the corresponding relative frequency, the absolute frequency receptive fields containing at least one case of current class, and the corresponding relative frequency.