File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ randomizedLasso = function(X,
15
15
objective_tol = 1.e-8 , # tolerance for relative decrease in objective
16
16
objective_stop = FALSE ,
17
17
kkt_stop = TRUE ,
18
- parameter_stop = TRUE ,
19
- for_test = FALSE )
18
+ parameter_stop = TRUE )
20
19
{
21
20
family = match.arg(family )
22
21
@@ -235,11 +234,10 @@ randomizedLasso = function(X,
235
234
observed_internal = observed_internal ,
236
235
observed_raw = observed_raw ,
237
236
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
+
243
241
return (return_list )
244
242
}
245
243
@@ -461,10 +459,8 @@ randomizedLassoInf = function(rand_lasso_soln,
461
459
sampler = c(" norejection" , " adaptMCMC" ),
462
460
nsample = 10000 ,
463
461
burnin = 2000 ,
464
- weight_mat = NULL ,
465
462
opt_samples = NULL ,
466
- target_samples = NULL ,
467
- for_test = FALSE )
463
+ target_samples = NULL )
468
464
{
469
465
470
466
n = nrow(rand_lasso_soln $ X )
You can’t perform that action at this time.
0 commit comments