Parameter initialization for the ENNreg model
ENNreg_init
returns initial parameter values for the ENNreg model.
ENNreg_init(X, y, K, nstart = 100, c = 1)
X
: Input matrix of size n x p, where n is the number of objects and p the number of attributes.y
: Vector of length n containing observations of the response variable.K
: Number of prototypes.nstart
: Number of random starts of the k-means algorithm (default: 100)c
: Multiplicative coefficient applied to scale parameter gamma (defaut: 1)An object of class "ENNreg", which can be passed to function ENNreg
.
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)
ENNreg
Thierry Denoeux.
Useful links