Description Usage Arguments Value Examples
This function is used for the implementation of the SIVI's algorithm (semi-implicit variational inference) in the logistic regression set-up. It adopts the adam optimizer for the covariance matrix and uses the gradient descent optimizer for the Neural Network in the implicit part. The iter number can be tuned manually, and the output is the sampling from the posterior of the latent variables. In this configuration, we have the number of latent variables equal to the numbers of parameters input by X.
1 2 3 |
X |
the matrix for training |
Y |
the corresponding labels |
noise_dim |
the input noise dimension |
K |
the added terms |
J |
the sampling numbers of latent variables |
merge |
when merge equals one means using the lower bound, when it equals zero means using the upper bound |
lr |
the learning rate inside the 200 times iteration |
lr2 |
the learning rate outside the 200 times iteration |
n_iter |
the whole iteration number |
inner_iter |
the iteration number for the nural network which reside in the inner part of the iteration and is supposed to be smaller than the iter_num. |
pos_num |
the sampling numbers of the posterior |
the sampling of posterior for the latent variables
1 | sivi_lr(waveform$X.train, waveform$y.train)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.