Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sampling is able to initialize when there is an exception in transformed parameters #2570

Merged
merged 10 commits into from
Jul 11, 2018
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ stan.kdev4

# local make include
/make/local

*.gch
4 changes: 2 additions & 2 deletions src/stan/services/optimize/bfgs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ namespace stan {

std::vector<int> disc_vector;
std::vector<double> cont_vector
= util::initialize(model, init, rng, init_radius, false,
logger, init_writer);
= util::initialize<false>(model, init, rng, init_radius, false,
logger, init_writer);

std::stringstream bfgs_ss;
typedef stan::optimization::BFGSLineSearch
Expand Down
4 changes: 2 additions & 2 deletions src/stan/services/optimize/lbfgs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ namespace stan {

std::vector<int> disc_vector;
std::vector<double> cont_vector
= util::initialize(model, init, rng, init_radius, false,
logger, init_writer);
= util::initialize<false>(model, init, rng, init_radius, false,
logger, init_writer);

std::stringstream lbfgs_ss;
typedef stan::optimization::BFGSLineSearch
Expand Down
4 changes: 2 additions & 2 deletions src/stan/services/optimize/newton.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ namespace stan {

std::vector<int> disc_vector;
std::vector<double> cont_vector
= util::initialize(model, init, rng, init_radius, false,
logger, init_writer);
= util::initialize<false>(model, init, rng, init_radius, false,
logger, init_writer);


double lp(0);
Expand Down
Loading