|
QDpy
|
Construct diverse, validated context rewrites and measure answer disagreement. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.neighborhood_elites.NeighborhoodEntry |
| One assessed rewrite and its realized location. More... | |
| class | qdpy.algorithms.neighborhood_elites.NeighborhoodStats |
| Count construction and downstream answer requests separately. More... | |
| class | qdpy.algorithms.neighborhood_elites.NeighborhoodProbe |
| Summary of a downstream disagreement measurement. More... | |
| class | qdpy.algorithms.neighborhood_elites.NeighborhoodElites |
| Grow and refine a categorical archive for one fixed question and context. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.neighborhood_elites.answer_entropy (answers, *, group=None) | |
| Measure empirical entropy over answer classes. | |
Construct diverse, validated context rewrites and measure answer disagreement.
Definition in file neighborhood_elites.py.
| qdpy.algorithms.neighborhood_elites.answer_entropy | ( | answers, | |
| * | , | ||
| group = None ) |
Measure empirical entropy over answer classes.
Return entropy in nats, or None for an empty collection. Pass a grouping callback that maps equivalent answers to the same hashable key. Without it, compare exact answers.
Definition at line 54 of file neighborhood_elites.py.