The grid (core) ยท console.warn
statistics.bayes: the category '{value}' is ...
Printed by The grid (core), prefixed [lattice], since 1.125.0.
Warnings reference › stat.bayes-category
- Identifier
stat.bayes-category- Raised by
- The grid (core)
- Since
- 1.125.0
What happened
statistics.bayes() was given a category to count, and that value never appears in the measured column. Counting it would report a posterior on zero successes for a value the column never held, so the call returned null rather than answer with a number built from nothing.
The fix
Pass a value the column actually holds, or leave category off to let the grid count the affirmative of a clear affirmative pair (true/false, yes/no, 1/0).
The smallest fix
grid.statistics.bayes('passed', { category: 'true' });
Reference
Covered in full at the API reference.