upclassifymodel(Xtrain, cltrain, Xtest, cltest = NULL,
modelName = "EEE", tol = 10^-5, iterlim = 1000,
Aitken = TRUE, ...)Xtrain.
Xtest. By default, these are not supplied and the function sets out to obtain them.
modelvec
10^{-5}, which is a measure of how strictly convergence is defined.
TRUE which tests for convergence using Aitken acceleration. If value is set to FALSE, convergence is tested by comparing tol to the change in log-likelihood between two consecutive iterations. For further information on Aitken acceleration, see Aitken
upclassifymodel.iterlim.TRUE indicates convergence was reached and FALSE means iter reached iterlim without obtaining convergence.[i,k]th entry is the conditional probability of the ith observation belonging to the kth component of the mixture.Xtrain/Xtest.zs) obtained.Fraley, C. and Raftery, A.E. (2006). MCLUST Version for R: Normal Mixture Modeling and Model-Based Clustering, Technical Report no. 504, Department of Statistics, University of Washington.
Dean, N., Murphy, T.B. and Downey, G (2006). Using unlabelled data to update classification rules with applications in food authenticity studies. Journal of the royal Statistical Society: Series C 55 (1), 1-14.
upclassify, Aitken, modelvec
# This function is not designed to be used on its own,
# but to be called by \code{upclassify}
data(wine, package = "gclus")
X <- as.matrix(wine[, -1])
cl <- unclass(wine[, 1])
indtrain <- sort(sample(1:178, 120))
indtest <- setdiff(1:178, indtrain)
fitup <- upclassifymodel(X[indtrain,], cl[indtrain], X[indtest,], cl[indtest])
Run the code above in your browser using DataLab