CategoricalSummary ¶
Uncertainty at every target from n realizations of categories.
entropy
property
¶
entropy
Entropy of the probabilities scaled to [0, 1]: 0 where every realization agrees, 1 where all categories are equally likely.
least_likely
property
¶
least_likely
Least probable category per target among those a realization took; ties go to the lowest. -1 where one category takes every realization.
probabilities
property
¶
probabilities
(targets, categories) fraction of realizations in each category.
proportions
property
¶
proportions
(n, categories) share of targets in each category per realization.
realizations
property
¶
realizations
(len(kept), targets) kept realizations; None when none were kept.
from_parquet
staticmethod
¶
from_parquet(path)
Reads to_parquet output; raises InvalidInput on another class's file
or a newer format.
to_parquet
method descriptor
¶
to_parquet(path)
Writes arrays as Parquet columns and parameters as JSON in the file
metadata; from_parquet reads it back.