| ppgmmga.options | R Documentation |
Set or retrieve default values to be used by the ppgmmga package.
ppgmmga.options(...)
... |
A single character vector, or a named list with components. In the one argument case, the form |
This function can be used to set or retrieve the values to be used by the ppgmmga package.
The function globally sets the arguments for the current session of R. The default options are restored with a new R session. To temporarily change the options for a single call to ppgmmga function, look at options argument in ppgmmga.
Available options are:
modelNamesA string specifying the GMM to fit. See mclustModelNames for the available models.
GAn integer value or a vector of integer values specifying the number of mixture components. If more than a single value is provided, the best model is selected using the BIC criterion. By default G = 1:9.
initMclustA string specifying the type of initialisation to be used for the EM algorithm. See mclust.options for more details.
popSizeThe GA population size. By default popSize = 100.
pcrossoverThe probability of crossover. By default pcrossover = 0.8.
pmutationThe probability of mutation. By default pmutation = 0.1.
maxiterAn integer value specifying the maximum number of iterations before stopping the GA. By default maxiter = 1000.
runAn integer value indicating the number of generations without improvment in the best value of fitness fuction. run = 100.
selectionAn R function performing the selection genetic operator. See ga_Selection for details. By default selection = gareal_lsSelection.
crossoverAn R function performing the crossover genetic operator. See ga_Crossover for details. By default crossover = gareal_laCrossover.
mutationAn R function performing the mutation genetic operator. See ga_Mutation for details. By default mutation = gareal_raMutation.
parallelA logical value specifying whether or not GA should be run in parallel. By default parallel = FALSE.
numIslandsAn integer value specifying the number of islands to be used in the Island Genetic Algorithm. By default numIslands = 4.
migrationRateA value specifying the fraction of migration between islands. By default migrationRate = 0.1.
migrationIntervalAn integer values specifying the number of generations to run before each migration. By default migrationInterval = 10.
optimA logical value specifying whether or not a local search should be performed. By default optim = TRUE.
optimPoptimA value specifying the probability a local search is performed at each GA generation. By default optimPoptim = 0.05.
optimPresselA value in [0,1] specifying the pressure selection. Values close to 1 tend to assign higher selection probabilities to solutions with higher fitness, whereas values close to 0 tend to assign equal selection probability to any solution. By default optimPressel = 0.5.
optimMethodA string specifying the general-purpose optimisation method to be used for local search. See optim for the available algorithms. By default optimMethod = "L-BFGS-B".
optimMaxitAn integer value specifying the number of iterations for the local search algorithm. By default optimMaxit = 100.
orthA string specifying the method employed to orthogonalise the matrix basis. Available methods are the QR decomposition "QR", and the Singular Value Decomposition "SVD". By default orth = "QR".
classPlotSymbolsA vector whose entries are either integers corresponding to graphics symbols or single characters for indicating classifications when plotting data. Classes are assigned symbols in the given order.
classPlotColorsA vector whose entries correspond to colors for indicating classifications when plotting data. Classes are assigned colors in the given order.
For more details about options related to Gaussian mixture modelling see densityMclust, and for those related to genetic algorithms see ga and gaisl.
Serafini A. srf.alessio@gmail.com
Scrucca L. luca.scrucca@unipg.it
Scrucca, L., Fop, M., Murphy, T. B., & Raftery, A. E. (2016) mclust 5: Clustering, classification and density estimation using gaussian finite mixture models. The R journal, 8(1), 205-233. https://journal.r-project.org/archive/2016-1/scrucca-fop-murphy-etal.pdf
Scrucca, L. (2013) GA: A Package for Genetic Algorithms in R. Journal of Statistical Software, 53(4), 1-37. http://www.jstatsoft.org/v53/i04/
Scrucca, L. (2017) On some extensions to GA package: hybrid optimisation, parallelisation and islands evolution. The R Journal, 9/1, 187-206. https://journal.r-project.org/archive/2017/RJ-2017-008
Scrucca, L. and Serafini, A. (2019) Projection pursuit based on Gaussian mixtures and evolutionary algorithms. Journal of Computational and Graphical Statistics, 28:4, 847–860. DOI: 10.1080/10618600.2019.1598871
ppgmmga
## Not run:
ppgmmga.options()
# Print a single option
ppgmmga.options("popSize")
# Change (globally) an option
ppgmmga.options("popSize" = 10)
ppgmmga.options("popSize")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.