stan-dev / projpred

Projection predictive variable selection
https://mc-stan.org/projpred/
Other
110 stars 25 forks source link

Fix PSIS-LOO CV with `validate_search = FALSE` and a single projected draw #454

Closed fweber144 closed 1 year ago

fweber144 commented 1 year ago

This fixes a bug for PSIS-LOO CV with validate_search = FALSE and a single projected draw (the sub_psisloo <- importance_sampling_func(-log_lik_ref, [...] call gave the error

Error in importance_sampling_object(unnormalized_log_weights = log_weights,  :
is.matrix(unnormalized_log_weights) is not TRUE

which came from the loo package).