iaa_od.models.k_alpha_observations_matrix
Classes
|
Data class to hold the observations matrix and related totals for Krippendorff's Alpha analysis. |
- class iaa_od.models.k_alpha_observations_matrix.KAlphaObservationsMatrix(*, observations_matrix, row_totals, column_totals, total, n_filtered_units=None, macro_categories_dict=None)[source]
Bases:
objectData class to hold the observations matrix and related totals for Krippendorff’s Alpha analysis.
- observations_matrix
A 2D numpy array representing the observations matrix.
- Type:
np.ndarray
- row_totals
A 1D numpy array representing the totals for each row.
- Type:
np.ndarray
- column_totals
A 1D numpy array representing the totals for each column.
- Type:
np.ndarray
- total
The grand total of all observations.
- Type:
int
- n_filtered_units
The number of filtered units (only set when filtering units).
- Type:
int | None
- macro_categories_dict
An optional dictionary mapping macro-category names to lists of category indices.
- Type:
dict[str, list[int]] | None
-
column_totals:
ndarray
-
macro_categories_dict:
dict[str,list[int]] |None
-
n_filtered_units:
int|None
-
observations_matrix:
ndarray
-
row_totals:
ndarray
-
total:
int