From: emilie Date: Fri, 17 Mar 2017 12:15:22 +0000 (+0100) Subject: few modifications X-Git-Url: https://git.auder.net/DESCRIPTION?a=commitdiff_plain;h=93285a2d87991291c96f661208ddde248297a3b5;p=valse.git few modifications --- diff --git a/pkg/R/valse.R b/pkg/R/valse.R index 396a9a1..72e2d4d 100644 --- a/pkg/R/valse.R +++ b/pkg/R/valse.R @@ -45,9 +45,9 @@ valse = function(X,Y,procedure = 'LassoMLE',selecMod = 'DDSE',gamma = 1,mini = 1 source('~/valse/pkg/R/gridLambda.R') grid_lambda <<- gridLambda(phiInit, rhoInit, piInit, gamInit, X, Y, gamma, mini, maxi, eps) - if (length(grid_lambda)>50){ - grid_lambda = grid_lambda[seq(1, length(grid_lambda), length.out = 50)] - } + # if (length(grid_lambda)>50){ + # grid_lambda = grid_lambda[seq(1, length(grid_lambda), length.out = 50)] + # } print("Compute relevant parameters") #select variables according to each regularization parameter #from the grid: A1 corresponding to selected variables, and diff --git a/reports/essaiPlot.R b/reports/essaiPlot.R index dea7e00..bf2b61e 100644 --- a/reports/essaiPlot.R +++ b/reports/essaiPlot.R @@ -18,7 +18,7 @@ kSel = c(1,2) par(mfrow = c(1,3)) for (r in kSel){ - image.plot(t(abs(model$phi[,,r])),title="hat{beta}",xaxt="n",yaxt="n", + image.plot(t(abs(model$phi[,,r])),xaxt="n",yaxt="n", col=gray(rev(seq(0,64,length.out=65))/65),breaks=seq(0,valMax,length.out=66)) } image.plot(t(abs(model$phi[,,kSel[1]]-model$phi[,,kSel[2]])),