powered by
ENNreg_init returns initial parameter values for the ENNreg model.
ENNreg_init
ENNreg_init(X, y, K, nstart = 100, c = 1)
An object of class "ENNreg", which can be passed to function ENNreg.
ENNreg
Input matrix of size n x p, where n is the number of objects and p the number of attributes.
Vector of length n containing observations of the response variable.
Number of prototypes.
Number of random starts of the k-means algorithm (default: 100)
Multiplicative coefficient applied to scale parameter gamma (defaut: 1)
Thierry Denoeux.
Prototypes are initialized by the k-means algorithm.
## Boston dataset library(MASS) attach(Boston) X <- as.matrix(scale(Boston[,1:13])) y <- Boston[,14] psi <- ENNreg_init(X,y,K=30)
Run the code above in your browser using DataLab