eps <<- ifelse (hasArg("eps"), eps, 1e-6)
kmin <<- ifelse (hasArg("kmin"), kmin, as.integer(2))
kmax <<- ifelse (hasArg("kmax"), kmax, as.integer(3))
eps <<- ifelse (hasArg("eps"), eps, 1e-6)
kmin <<- ifelse (hasArg("kmin"), kmin, as.integer(2))
kmax <<- ifelse (hasArg("kmax"), kmax, as.integer(3))
- rangmin <<- ifelse (hasArg("rangmin"), rangmin, as.integer(2))
- rangmax <<- ifelse (hasArg("rangmax"), rangmax, as.integer(3))
- seuil <<- 1e-15 #immutable (TODO:?)
+ rank.min <<- ifelse (hasArg("rank.min"), rank.min, as.integer(2))
+ rank.max <<- ifelse (hasArg("rank.max"), rank.max, as.integer(3))
+ thresh <<- 1e-15 #immutable (TODO:?)
#smallEM initializes parameters by k-means and regression model in each component,
#doing this 20 times, and keeping the values maximizing the likelihood after 10
#iterations of the EM algorithm.
#smallEM initializes parameters by k-means and regression model in each component,
#doing this 20 times, and keeping the values maximizing the likelihood after 10
#iterations of the EM algorithm.
#from the grid: A1 corresponding to selected variables, and
#A2 corresponding to unselected variables.
params = selectiontotale(
#from the grid: A1 corresponding to selected variables, and
#A2 corresponding to unselected variables.
params = selectiontotale(
- phiInit,rhoInit,piInit,tauInit,mini,maxi,gamma,gridLambda,X,Y,seuil,eps)
+ phiInit,rhoInit,piInit,tauInit,mini,maxi,gamma,gridLambda,X,Y,thresh,eps)
#compute parameter estimations, with the Maximum Likelihood
#Estimator, restricted on selected variables.
return ( constructionModelesLassoMLE(
#compute parameter estimations, with the Maximum Likelihood
#Estimator, restricted on selected variables.
return ( constructionModelesLassoMLE(
- phiInit,rhoInit,piInit,tauInit,mini,maxi,gamma,gridLambda,X,Y,seuil,eps,A1,A2) )
+ phiInit,rhoInit,piInit,tauInit,mini,maxi,gamma,gridLambda,X,Y,thresh,eps,A1,A2) )
#compute parameter estimations, with the Low Rank
#Estimator, restricted on selected variables.
return ( constructionModelesLassoRank(Pi,Rho,mini,maxi,X,Y,eps,
#compute parameter estimations, with the Low Rank
#Estimator, restricted on selected variables.
return ( constructionModelesLassoRank(Pi,Rho,mini,maxi,X,Y,eps,