I updated command.hpp to mimic the interface currently in master and tested all of the individual algorithms and I think we're ready to consider merging hmc_refactor in master. Are there any tests I should run to validate? Should we hold off on considering a merge until after releasing 1.3?
-Mike
--
You received this message because you are subscribed to the Google Groups "stan development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Cool, I'll give them a try. Worst case I'll run the model tests overnight.
goodrich@CYBERPOWERPC:/opt/stan$ git grep -F -n "<stan/mcmc/adaptive_sampler.hpp>" src/ | cat
src/stan/mcmc/nuts.hpp:15:#include <stan/mcmc/adaptive_sampler.hpp>
src/test/file_includes/stan_mcmc_adaptive_sampler_test.cpp:1:#include <stan/mcmc/adaptive_sampler.hpp>
goodrich@CYBERPOWERPC:/opt/stan$ ls src/stan/mcmc
adapter.hpp chains.hpp hamiltonian.hpp hmc_base.hpp integrator.hpp mcmc_base.hpp nuts.hpp static_hmc.hpp util.hpp
You have an old pull -- there shouldn't be a "nuts.hpp" file.
src/test/file_includes/stan_mcmc_adaptive_sampler_test.cpp:1:10: fatal error: 'stan/mcmc/adaptive_sampler.hpp' file not found
#include <stan/mcmc/adaptive_sampler.hpp>
Ah, I see the problem. I haven't realized that the unit tests were that fine-grained. I'll start fixing the tests.
# modified: src/test/file_includes/stan_mcmc_adaptive_cdhmc_test.cpp
# modified: src/test/file_includes/stan_mcmc_adaptive_sampler_test.cpp
# modified: src/test/file_includes/stan_mcmc_dualaverage_test.cpp
# modified: src/test/file_includes/stan_mcmc_sampler_test.cpp
src/stan/mcmc.hpp:4:10: fatal error: 'stan/mcmc/adaptive_cdhmc.hpp' file not found
#include "stan/mcmc/adaptive_cdhmc.hpp"
On Wednesday, April 3, 2013 2:16:59 PM UTC-4, Michael Betancourt wrote:Ah, I see the problem. I haven't realized that the unit tests were that fine-grained. I'll start fixing the tests.
goodrich@CYBERPOWERPC:/opt/stan$ grep -A 2 -F "fatal error" /tmp/hmc_refactor.txt
src/test/file_includes/stan_mcmc_adaptive_sampler_test.cpp:1:10: fatal error: 'stan/mcmc/adaptive_sampler.hpp' file not found
#include <stan/mcmc/adaptive_sampler.hpp>
^
--
src/test/file_includes/stan_mcmc_adaptive_cdhmc_test.cpp:1:10: fatal error: 'stan/mcmc/adaptive_cdhmc.hpp' file not found
#include <stan/mcmc/adaptive_cdhmc.hpp>
^
--
src/test/file_includes/stan_mcmc_dualaverage_test.cpp:1:10: fatal error: 'stan/mcmc/dualaverage.hpp' file not found
#include <stan/mcmc/dualaverage.hpp>
^
--
src/test/file_includes/stan_mcmc_sampler_test.cpp:1:10: fatal error: 'stan/mcmc/sampler.hpp' file not found
#include <stan/mcmc/sampler.hpp>
^
--
src/test/file_includes/stan_mcmc_hmc_base_test.cpp:1:10: fatal error: 'stan/mcmc/hmc_base.hpp' file not found
#include <stan/mcmc/hmc_base.hpp>
^
--
src/test/file_includes/stan_mcmc_adaptive_hmc_test.cpp:1:10: fatal error: 'stan/mcmc/adaptive_hmc.hpp' file not found
#include <stan/mcmc/adaptive_hmc.hpp>
^
--
src/test/file_includes/stan_mcmc_nuts_test.cpp:1:10: fatal error: 'stan/mcmc/nuts.hpp' file not found
#include <stan/mcmc/nuts.hpp>
^
--
src/test/file_includes/stan_mcmc_nuts_diag_test.cpp:1:10: fatal error: 'stan/mcmc/nuts_diag.hpp' file not found
#include <stan/mcmc/nuts_diag.hpp>
goodrich@CYBERPOWERPC:/opt/stan$ git diff | cat
diff --git a/src/stan/math/matrix.hpp b/src/stan/math/matrix.hpp
index aee9cc7..88d23cb 100755
--- a/src/stan/math/matrix.hpp
+++ b/src/stan/math/matrix.hpp
@@ -17,7 +17,7 @@
namespace stan {
namespace math {
- typedef Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic>::size_type size_type;
+ typedef size_t size_type;
// from input type F to output type T
// scalar, F != T (base template)
diff --git a/src/stan/mcmc.hpp b/src/stan/mcmc.hpp
index dc994ad..8dea03b 100644
--- a/src/stan/mcmc.hpp
+++ b/src/stan/mcmc.hpp
@@ -1,12 +1,12 @@
#ifndef STAN_MCMC_HPP
#define STAN_MCMC_HPP
-#include "stan/mcmc/adaptive_cdhmc.hpp"
-#include "stan/mcmc/adaptive_hmc.hpp"
-#include "stan/mcmc/adaptive_sampler.hpp"
-#include "stan/mcmc/dualaverage.hpp"
-#include "stan/mcmc/nuts.hpp"
-#include "stan/mcmc/sampler.hpp"
+#include "stan/mcmc/base_adapter.hpp"
+#include "stan/mcmc/base_mcmc.hpp"
+#include "stan/mcmc/chains.hpp"
+#include "stan/mcmc/covar_adapter.hpp"
+#include "stan/mcmc/sample.hpp"
+#include "stan/mcmc/stepsize_adapter.hpp"
#include "stan/mcmc/util.hpp"
-
+#include "stan/mcmc/var_adapter.hpp"
#endif