Skip to content

Commit aeef620

Browse files
cleanup of randomized R to get check to pass
1 parent f84f96a commit aeef620

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

selectiveInference/R/funs.randomized.R

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ randomizedLasso = function(X,
1515
objective_tol=1.e-8, # tolerance for relative decrease in objective
1616
objective_stop=FALSE,
1717
kkt_stop=TRUE,
18-
parameter_stop=TRUE,
19-
for_test=FALSE)
18+
parameter_stop=TRUE)
2019
{
2120
family = match.arg(family)
2221

@@ -235,11 +234,10 @@ randomizedLasso = function(X,
235234
observed_internal=observed_internal,
236235
observed_raw=observed_raw,
237236
noise_scale=noise_scale,
238-
soln=result$soln)
239-
if (for_test) {
240-
return_list$perturb=perturb_
241-
return_list$ridge_term=ridge_term
242-
}
237+
soln=result$soln,
238+
perturb=perturb_,
239+
ridge_term=ridge_term)
240+
243241
return(return_list)
244242
}
245243

@@ -461,10 +459,8 @@ randomizedLassoInf = function(rand_lasso_soln,
461459
sampler=c("norejection", "adaptMCMC"),
462460
nsample=10000,
463461
burnin=2000,
464-
weight_mat=NULL,
465462
opt_samples=NULL,
466-
target_samples=NULL,
467-
for_test=FALSE)
463+
target_samples=NULL)
468464
{
469465

470466
n = nrow(rand_lasso_soln$X)

0 commit comments

Comments
 (0)