A conditional density estimator learns \(q_\phi(\theta \mid x)\). In
neuralsbi every estimator is trained in standardized space and exposes two
generics:
Details
de_log_prob(de, theta, x)– log density ofthetagivenxde_sample(de, x, n)– drawnparameter vectors given a singlex
Two estimators ship today:
"mdn"– a Mixture Density Network (neural network -> Gaussian mixture), the workhorse, requires thetorchback end."linear_gaussian"– a closed-form conditional Gaussian baseline (least-squares mean, residual covariance). No neural network, notorch. It is exact for linear-Gaussian simulators and doubles as a fast baseline and a regression-test oracle.
