bayesplain.core.dirichlet_multinomial.validate_table¶
- bayesplain.core.dirichlet_multinomial.validate_table(table)[source]¶
Check that an array is a usable table of counts.
- Parameters:¶
- table : array_like¶
Two-dimensional array of non-negative whole numbers.
- Returns:¶
The validated table as a float array of shape
(R, C).- Return type:¶
ndarray
- Raises:¶
ValueError – If the table is not 2-D, contains negative or non-integral values, is smaller than 2x2, or has an entirely empty row or column.