Test Suite
QUiNN includes a comprehensive test suite in the tests/ directory with
14 test files covering all library modules (148 tests total). Run the full
suite with:
pytest tests/ -q
Test Modules
File |
What is tested |
Tests |
|---|---|---|
|
Analytical test functions ( |
18 |
|
Data mapping utilities ( |
14 |
|
Statistics helpers ( |
10 |
|
Random variable classes ( |
12 |
|
|
16 |
|
|
9 |
|
|
7 |
|
Bayesian losses ( |
5 |
|
MCMC samplers ( |
8 |
|
|
7 |
|
|
8 |
|
|
14 |
|
Torch utilities ( |
9 |
|
General utilities ( |
11 |
Coverage Summary
The tests exercise all major subsystems of QUiNN:
Neural network architectures:
MLP,RNet,BNet,NNWrap.Training:
nnfitwith various loss functions, optimizers, and schedules.UQ solvers:
NN_MCMC(AMCMC, HMC, MALA),NN_Ens,NN_RMS,NN_VI,NN_Laplace,NN_SWAG.MCMC samplers:
AMCMC,HMC,MALAindependently.Bayesian losses:
NegLogPost,NegLogPrior.Random variables:
Gaussian_1d,GMM2_1d,MVN.Utilities: data maps, statistics, torch helpers, pickle, KDE, Cholesky.
Test functions:
blundell,Sine,Sine10,Ackley, etc.