Closed aksarkar closed 10 months ago
Thanks @aksarkar it makes complete sense. Do all unit test pass?
Yes, all tests passed on my machine.
> devtools::test()
ℹ Testing susieR
✔ | F W S OK | Context
✔ | 18 | test_compute_tf.R
✔ | 2 | test_compute_colsds.R
✔ | 2 | test_Eloglik_rss.R
✔ | 2 | test_Eloglik.R
✔ | 2 | test_est_V.R
✔ | 2 | test_get_ER2_rss.R
✔ | 2 | test_get_ER2.R
✔ | 4 | test_get_pip.R
✔ | 8 | test_get_samples.R [3.7s]
✔ | 2 | test_init.R
✔ | 6 | test_intercept_standardize.R [4.7s]
✔ | 34 | test_null_weight.R [4.5s]
✔ | 45 | test_prior_weights.R [5.8s]
✔ | 2 | test_SER_posterior_e_loglik_rss.R
✔ | 2 | test_SER_posterior_e_loglik.R
✔ | 6 | test_sparse_multiplication.R
✔ | 4 | test_sparse_set_X_attributes.R
✔ | 30 | test_susie_beta_se.R [2.1s]
✔ | 2 | test_susie_get_cs.R
✔ | 2 | test_get_objective.R
✔ | 2 | test_get_objective_rss.R
✔ | 2 0 | test_susie_rss.R
✔ | 151 | test_susie_trendfilter.R [1.8s]
✔ | 30 | test_susie_XtX_Xty.R
⠏ | 0 | test_update_each_effect.R
══ Results ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Duration: 25.9 s
── Skipped tests (2) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
• susie_rss_lambda is not currently being used (2): test_susie_rss.R:5:3, test_susie_rss.R:21:3
[ FAIL 0 | WARN 0 | SKIP 2 | PASS 360 ]
Looks good, @aksarkar. I can confirm that the tests pass, and the result was the same in the few tests that I ran.
@gaow Shall I go ahead and merge this PR?
@aksarkar @pcarbo that's great! Okay I merged it. Thanks a lot @aksarkar !
Pre-compute some quantities outside
optim
to speed up the diagnostic.Profiling code
On revision f63f9cb
New code