- write(strcat(testFolder,'phiInit'), reshape(phiInit,1), delimiter)
- write(strcat(testFolder,'rhoInit'), reshape(rhoInit,1), delimiter)
- write(strcat(testFolder,'piInit'), piInit, delimiter)
- write(strcat(testFolder,'gamInit'), reshape(gamInit,1), delimiter)
- write(strcat(testFolder,'mini'), mini, delimiter)
- write(strcat(testFolder,'maxi'), maxi, delimiter)
- write(strcat(testFolder,'gamma'), gamma, delimiter)
- write(strcat(testFolder,'glambda'), glambda, delimiter)
- write(strcat(testFolder,'X'), reshape(X,1), delimiter)
- write(strcat(testFolder,'Y'), reshape(Y,1), delimiter)
- mwrite(strcat(testFolder,'seuil'), seuil, delimiter)
- write(strcat(testFolder,'tau'), tau, delimiter)
- write(strcat(testFolder,'A1'), reshape(A1,1), delimiter)
- write(strcat(testFolder,'A2'), reshape(A2,1), delimiter)
- write(strcat(testFolder,'dimensions'), [n,p,m,k,L], delimiter)
-
- construct_LME = constructionModelesLassoMLE(phiInit,rhoInit,piInit,gamInit,mini,maxi,gamma,glambda,X,Y,seuil,tau,A1,A2)
- phi = construct_LME$phi
- rho = construct_LME$rho
- pi = construct_LME$pi
- lvraisemblance = construct_LME$lvraisemblance
-
+ write.table(as.double(params$phiInit), paste(testFolder,"phiInit",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.double(params$rhoInit), paste(testFolder,"rhoInit",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.double(params$piInit), paste(testFolder,"piInit",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.double(params$gamInit), paste(testFolder,"gamInit",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.integer(mini), paste(testFolder,"mini",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.integer(maxi), paste(testFolder,"maxi",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.double(gamma), paste(testFolder,"gamma",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.double(lambda), paste(testFolder,"lambda",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.double(io$X), paste(testFolder,"X",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.double(io$Y), paste(testFolder,"Y",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.double(tau), paste(testFolder,"tau",sep=""),
+ row.names=F, col.names=F)
+ write.table(as.integer(c(n,p,m,k)), paste(testFolder,"dimensions",sep=""),
+ row.names=F, col.names=F)
+
+ res = constructionModelesLassoMLE(
+ params$phiInit,params$rhoInit,params$piInit,params$gamInit,
+ mini,maxi,gamma,glambda,io$X,io$Y,seuil,tau,A1,A2)
+