Bayesian estimation and comparison of classifier performance. Provides Bayesian equivalents of frequentist hypothesis tests (sign test, Wilcoxon signed-rank test) via posterior distributions over the difference of two classifiers. Version 1.0.3 supports three tests: sign test, signed-rank test, and correlated t-test. Not actively maintained; last release 2019.
pip install baycompNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Imports baycomp, creates sample accuracy arrays, runs Bayesian sign test with a region of practical equivalence (ROPE) of 0.01, and prints posterior probabilities.
Unpack all four values: prob_x, prob_y, prob_tie, region = test(...)
For t_test, provide rope as [lower, upper] (e.g., rope=[-0.01, 0.01]). For sign_test et al., provide a single positive number.
Convert your 2D array to a list of arrays: [arr for arr in matrix]
If you need active support, switch to scikit-posthocs (bayesian_sign_test) or implement with PyMC/Stan.
No dependency data recorded yet.