View source: R/isItStillActive.R
isItStillActive | R Documentation |
In the Expectation Maximization routine features posterior probabilities routinely converge based on a tolerance threshold. This function checks whether or not the feature's negative log-likelihood (measure of the fit) has changed or not.
isItStillActive(eps, tol, stillActive, stillActiveNLL, nll)
eps |
Vector of size M (features) representing the relative difference between the new nll and old nll. |
tol |
The threshold tolerance for the difference |
stillActive |
A vector of size M booleans saying if a feature is still active or not. |
stillActiveNLL |
A vector of size M recording the negative log-likelihoods of the various features, updated for those still active. |
nll |
Vector of size M with the current negative log-likelihoods. |
None.
fitZig
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.