histcounts
Compute histogram bin counts for specified variables in baseline and target data for drift detection
Since R2022a
Description
returns the histogram bin counts in the table H
= histcounts(DDiagnostics
)H
for all variables
specified for drift detection in the call to the detectdrift
function.
returns the bin counts for the variables specified by H
= histcounts(DDiagnostics
,Variables=variables
)variables
.
Examples
Input Arguments
Output Arguments
Algorithms
For categorical data,
detectdrift
adds a 0.5 correction factor to the histogram bin counts for each bin to handle empty bins (categories). This is equivalent to the assumption that the parameter p, probability that value of the variable would be in that category, has the prior distribution Beta(0.5,0.5), (Jeffreys prior assumption for the distribution parameter).histcounts
treats a variable as ordinal for visualization purposes in these cases:The variable is ordinal in either the baseline data or the target data, and the categories from both the baseline data and the target data are the same.
The variable is ordinal in either the baseline data or the target data, and the categories of the other data set are a subset of the ordinal data.
The variable is ordinal in both the baseline data and the target data, and categories from either data set are a subset of the other.
If a variable is ordinal,
histcounts
preserves the order of the bin names.
Version History
Introduced in R2022a
See Also
detectdrift
| DriftDiagnostics
| plotDriftStatus
| plotEmpiricalCDF
| plotHistogram
| plotPermutationResults
| ecdf
| summary