I have `N` multiclass observations with class labels `y_i in {1, ..., K}` and predictor vectors `x_i` of length `M`. I want to fit a Bayesian neural-network classifier with one hidden layer containing `J = 10` tanh units.

My model is:
For observation `i = 1, ..., N`,

`h_i = tanh(alpha_0 + A^T x_i),`

and the class-score vector is

`eta_{i1} = 1,`
`eta_{ik} = 1 + b_{0,k-1} + h_i^T b_{k-1}, for k = 2, ..., K.`

Then

`y_i ~ Categorical(softmax(eta_i)).`

The priors are

`alpha_{0j} ~ Normal(0, 1), for j = 1, ..., J,`
`b_{0k} ~ Normal(0, 1), for k = 1, ..., K - 1,`
`A_{mj} ~ Normal(0, sqrt(sigma2_alpha)),`
`b_{jk} ~ Normal(0, sqrt(sigma2_beta)),`

with

`sigma2_alpha ~ InvGamma(nu_alpha / 2, nu_alpha s0_alpha^2 / 2),`
`sigma2_beta ~ InvGamma(nu_beta / 2, nu_beta s0_beta^2 / 2),`

where `nu_alpha = nu_beta = 0.5`, `s0_alpha^2 = (0.05 / M^{1 / nu_alpha})^2`, and `s0_beta^2 = (0.05 / J^{1 / nu_beta})^2`.

Here:
`x_i` is the predictor vector for observation i,
`y_i` is the observed class label for observation i,
`h_i` is the hidden-layer activation vector,
`A` is the matrix of input-to-hidden weights,
`alpha_0` is the vector of hidden-layer intercepts,
`b` is the matrix of hidden-to-output weights,
`b_0` is the vector of output-layer intercepts,
`sigma2_alpha` and `sigma2_beta` are the prior variance parameters for the two weight matrices,
`J` is the number of hidden units,
`K` is the number of classes,
`M` is the number of predictors,
`N` is the number of observations.

Parameterization notes:
In `InvGamma(alpha, beta)`, `alpha` is the shape parameter and `beta` is the rate-style parameter.
In `Normal(mu, sigma)`, `sigma` is a standard deviation.
