Skip to content

Commit b44496d

Browse files
committed
Deploying to gh-pages from @ 2763c0f 🚀
1 parent 17d13cc commit b44496d

46 files changed

Lines changed: 516 additions & 516 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev/articles/cmdstanr-internals.html

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/articles/cmdstanr-internals.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ compilation approach described above).
171171

172172
``` r
173173
mod_pedantic <- cmdstan_model(stan_file_pedantic, pedantic = TRUE)
174-
Warning in '/tmp/RtmpAJNknL/model-390c25a6300.stan', line 8, column 2 to column 14:
174+
Warning in '/tmp/RtmpaUho7Q/model-3839442a4e76.stan', line 8, column 2 to column 14:
175175
The parameter lambda has no priors. This means either no prior is
176176
provided, or the prior(s) depend on data variables. In the later case,
177177
this may be a false positive.
178-
Warning in '/tmp/RtmpAJNknL/model-390c25a6300.stan', line 11, column 14 to column 20:
178+
Warning in '/tmp/RtmpaUho7Q/model-3839442a4e76.stan', line 11, column 14 to column 20:
179179
A poisson distribution is given parameter lambda as a rate parameter
180180
(argument 1), but lambda was not constrained to be strictly positive.
181181
```
@@ -185,11 +185,11 @@ argument to the `$check_syntax()` method.
185185

186186
``` r
187187
mod_pedantic$check_syntax(pedantic = TRUE)
188-
Warning in '/tmp/RtmpAJNknL/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
188+
Warning in '/tmp/RtmpaUho7Q/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
189189
The parameter lambda has no priors. This means either no prior is
190190
provided, or the prior(s) depend on data variables. In the later case,
191191
this may be a false positive.
192-
Warning in '/tmp/RtmpAJNknL/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
192+
Warning in '/tmp/RtmpaUho7Q/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
193193
A poisson distribution is given parameter lambda as a rate parameter
194194
(argument 1), but lambda was not constrained to be strictly positive.
195195
Stan program is syntactically correct
@@ -207,11 +207,11 @@ rm(mod_pedantic)
207207

208208
mod_pedantic <- cmdstan_model(stan_file_pedantic, compile = FALSE)
209209
mod_pedantic$check_syntax(pedantic = TRUE)
210-
Warning in '/tmp/RtmpAJNknL/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
210+
Warning in '/tmp/RtmpaUho7Q/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 8, column 2 to column 14:
211211
The parameter lambda has no priors. This means either no prior is
212212
provided, or the prior(s) depend on data variables. In the later case,
213213
this may be a false positive.
214-
Warning in '/tmp/RtmpAJNknL/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
214+
Warning in '/tmp/RtmpaUho7Q/model_287cd4f50e093cb87805d29fd774bdf8.stan', line 11, column 14 to column 20:
215215
A poisson distribution is given parameter lambda as a rate parameter
216216
(argument 1), but lambda was not constrained to be strictly positive.
217217
Stan program is syntactically correct
@@ -454,10 +454,10 @@ CmdStan to CSV files in a temporary directory.
454454
fit$output_files()
455455
```
456456

457-
[1] "/tmp/RtmpAJNknL/bernoulli-202607110142-1-5be444.csv"
458-
[2] "/tmp/RtmpAJNknL/bernoulli-202607110142-2-5be444.csv"
459-
[3] "/tmp/RtmpAJNknL/bernoulli-202607110142-3-5be444.csv"
460-
[4] "/tmp/RtmpAJNknL/bernoulli-202607110142-4-5be444.csv"
457+
[1] "/tmp/RtmpaUho7Q/bernoulli-202607111845-1-5be371.csv"
458+
[2] "/tmp/RtmpaUho7Q/bernoulli-202607111845-2-5be371.csv"
459+
[3] "/tmp/RtmpaUho7Q/bernoulli-202607111845-3-5be371.csv"
460+
[4] "/tmp/RtmpaUho7Q/bernoulli-202607111845-4-5be371.csv"
461461

462462
These files will be lost if you end your R session or if you remove the
463463
`fit` object and force (or wait for) garbage collection.
@@ -477,8 +477,8 @@ gc()
477477
```
478478

479479
used (Mb) gc trigger (Mb) max used (Mb)
480-
Ncells 1246029 66.6 2565441 137.1 1628718 87.0
481-
Vcells 2160533 16.5 8388608 64.0 4891534 37.4
480+
Ncells 1246023 66.6 2565424 137.1 1628718 87.0
481+
Vcells 2160515 16.5 8388608 64.0 4891529 37.4
482482

483483
``` r
484484

@@ -682,7 +682,7 @@ str(csv_contents)
682682
..$ stan_version_major : num 2
683683
..$ stan_version_minor : num 39
684684
..$ stan_version_patch : num 0
685-
..$ start_datetime : chr "2026-07-11 01:42:41 UTC"
685+
..$ start_datetime : chr "2026-07-11 18:45:38 UTC"
686686
..$ method : chr "sample"
687687
..$ save_warmup : int 0
688688
..$ thin : num 1
@@ -703,7 +703,7 @@ str(csv_contents)
703703
..$ seed : num 31749990
704704
..$ refresh : num 100
705705
..$ sig_figs : num 8
706-
..$ profile_file : chr "/tmp/RtmpAJNknL/bernoulli-profile-202607110142-1-2c7014.csv"
706+
..$ profile_file : chr "/tmp/RtmpaUho7Q/bernoulli-profile-202607111845-1-2c6f41.csv"
707707
..$ save_cmdstan_config : int 0
708708
..$ stanc_version : chr "stanc3 v2.39.0"
709709
..$ sampler_diagnostics : chr [1:6] "accept_stat__" "stepsize__" "treedepth__" "n_leapfrog__" ...
@@ -720,8 +720,8 @@ str(csv_contents)
720720
..$ time :'data.frame': 4 obs. of 4 variables:
721721
.. ..$ chain_id: num [1:4] 1 2 3 4
722722
.. ..$ warmup : num [1:4] 0.002 0.002 0.002 0.002
723-
.. ..$ sampling: num [1:4] 0.005 0.005 0.005 0.005
724-
.. ..$ total : num [1:4] 0.007 0.007 0.007 0.007
723+
.. ..$ sampling: num [1:4] 0.004 0.005 0.004 0.004
724+
.. ..$ total : num [1:4] 0.006 0.007 0.006 0.006
725725
..$ stan_variable_sizes :List of 2
726726
.. ..$ lp__ : num 1
727727
.. ..$ theta: num 1
@@ -732,8 +732,8 @@ str(csv_contents)
732732
..$ chains:'data.frame': 4 obs. of 4 variables:
733733
.. ..$ chain_id: num [1:4] 1 2 3 4
734734
.. ..$ warmup : num [1:4] 0.002 0.002 0.002 0.002
735-
.. ..$ sampling: num [1:4] 0.005 0.005 0.005 0.005
736-
.. ..$ total : num [1:4] 0.007 0.007 0.007 0.007
735+
.. ..$ sampling: num [1:4] 0.004 0.005 0.004 0.004
736+
.. ..$ total : num [1:4] 0.006 0.007 0.006 0.006
737737
$ inv_metric :List of 4
738738
..$ 1: num 0.588
739739
..$ 2: num 0.545
@@ -793,10 +793,10 @@ fit <- mod$sample(data = data_list, save_latent_dynamics = TRUE)
793793
fit$latent_dynamics_files()
794794
```
795795

796-
[1] "/tmp/RtmpAJNknL/bernoulli-diagnostic-202607110142-1-057299.csv"
797-
[2] "/tmp/RtmpAJNknL/bernoulli-diagnostic-202607110142-2-057299.csv"
798-
[3] "/tmp/RtmpAJNknL/bernoulli-diagnostic-202607110142-3-057299.csv"
799-
[4] "/tmp/RtmpAJNknL/bernoulli-diagnostic-202607110142-4-057299.csv"
796+
[1] "/tmp/RtmpaUho7Q/bernoulli-diagnostic-202607111845-1-0571c6.csv"
797+
[2] "/tmp/RtmpaUho7Q/bernoulli-diagnostic-202607111845-2-0571c6.csv"
798+
[3] "/tmp/RtmpaUho7Q/bernoulli-diagnostic-202607111845-3-0571c6.csv"
799+
[4] "/tmp/RtmpaUho7Q/bernoulli-diagnostic-202607111845-4-0571c6.csv"
800800

801801
``` r
802802

@@ -885,18 +885,18 @@ options("cmdstanr_verbose"=TRUE)
885885
mod <- cmdstan_model(stan_file, force_recompile = TRUE)
886886
```
887887

888-
Running make /tmp/RtmpAJNknL/model-390c60f19a1b \
888+
Running make /tmp/RtmpaUho7Q/model-3839200e48b2 \
889889
'STANCFLAGS += --name=bernoulli_model'
890890

891891
--- Translating Stan model to C++ code ---
892-
bin/stanc --name=bernoulli_model --o=/tmp/RtmpAJNknL/model-390c60f19a1b.hpp /tmp/RtmpAJNknL/model-390c60f19a1b.stan
892+
bin/stanc --name=bernoulli_model --o=/tmp/RtmpaUho7Q/model-3839200e48b2.hpp /tmp/RtmpaUho7Q/model-3839200e48b2.stan
893893

894894
--- Compiling C++ code ---
895-
g++ -Wno-deprecated-declarations -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.87.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -c -Wno-ignored-attributes -x c++ -o /tmp/RtmpAJNknL/model-390c60f19a1b.o /tmp/RtmpAJNknL/model-390c60f19a1b.hpp
895+
g++ -Wno-deprecated-declarations -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.87.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -c -Wno-ignored-attributes -x c++ -o /tmp/RtmpaUho7Q/model-3839200e48b2.o /tmp/RtmpaUho7Q/model-3839200e48b2.hpp
896896

897897
--- Linking model ---
898-
g++ -Wno-deprecated-declarations -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.87.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -Wl,-L,"/home/runner/.cmdstan/cmdstan-2.39.0/stan/lib/stan_math/lib/tbb" -Wl,-rpath,"/home/runner/.cmdstan/cmdstan-2.39.0/stan/lib/stan_math/lib/tbb" /tmp/RtmpAJNknL/model-390c60f19a1b.o src/cmdstan/main.o -ltbb stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_nvecserial.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_cvodes.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_idas.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_kinsol.a stan/lib/stan_math/lib/tbb/libtbb.so.2 -o /tmp/RtmpAJNknL/model-390c60f19a1b
899-
rm /tmp/RtmpAJNknL/model-390c60f19a1b.o /tmp/RtmpAJNknL/model-390c60f19a1b.hpp
898+
g++ -Wno-deprecated-declarations -std=c++17 -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -Wno-class-memaccess -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.87.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -Wl,-L,"/home/runner/.cmdstan/cmdstan-2.39.0/stan/lib/stan_math/lib/tbb" -Wl,-rpath,"/home/runner/.cmdstan/cmdstan-2.39.0/stan/lib/stan_math/lib/tbb" /tmp/RtmpaUho7Q/model-3839200e48b2.o src/cmdstan/main.o -ltbb stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_nvecserial.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_cvodes.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_idas.a stan/lib/stan_math/lib/sundials_6.1.1/lib/libsundials_kinsol.a stan/lib/stan_math/lib/tbb/libtbb.so.2 -o /tmp/RtmpaUho7Q/model-3839200e48b2
899+
rm /tmp/RtmpaUho7Q/model-3839200e48b2.hpp /tmp/RtmpaUho7Q/model-3839200e48b2.o
900900
stan_version_major = 2
901901
stan_version_minor = 39
902902
stan_version_patch = 0
@@ -918,9 +918,9 @@ fit <- mod$sample(
918918
Running MCMC with 1 chain...
919919

920920
Running ./bernoulli 'id=1' random 'seed=1376020223' data \
921-
'file=/tmp/RtmpAJNknL/standata-390c2c737940.json' output \
922-
'file=/tmp/RtmpAJNknL/bernoulli-202607110142-1-1e1466.csv' \
923-
'profile_file=/tmp/RtmpAJNknL/bernoulli-profile-202607110142-1-3dcc41.csv' \
921+
'file=/tmp/RtmpaUho7Q/standata-383969d4c332.json' output \
922+
'file=/tmp/RtmpaUho7Q/bernoulli-202607111845-1-1e1393.csv' \
923+
'profile_file=/tmp/RtmpaUho7Q/bernoulli-profile-202607111845-1-3dcb6e.csv' \
924924
'save_cmdstan_config=0' 'method=sample' 'num_samples=100' 'num_warmup=100' \
925925
'save_warmup=0' 'algorithm=hmc' 'engine=nuts' adapt 'engaged=1' \
926926
'save_metric=0'
@@ -952,16 +952,16 @@ fit <- mod$sample(
952952
Chain 1 num_chains = 1 (Default)
953953
Chain 1 id = 1 (Default)
954954
Chain 1 data
955-
Chain 1 file = /tmp/RtmpAJNknL/standata-390c2c737940.json
955+
Chain 1 file = /tmp/RtmpaUho7Q/standata-383969d4c332.json
956956
Chain 1 init = 2 (Default)
957957
Chain 1 random
958958
Chain 1 seed = 1376020223
959959
Chain 1 output
960-
Chain 1 file = /tmp/RtmpAJNknL/bernoulli-202607110142-1-1e1466.csv
960+
Chain 1 file = /tmp/RtmpaUho7Q/bernoulli-202607111845-1-1e1393.csv
961961
Chain 1 diagnostic_file = (Default)
962962
Chain 1 refresh = 100 (Default)
963963
Chain 1 sig_figs = 8 (Default)
964-
Chain 1 profile_file = /tmp/RtmpAJNknL/bernoulli-profile-202607110142-1-3dcc41.csv
964+
Chain 1 profile_file = /tmp/RtmpaUho7Q/bernoulli-profile-202607111845-1-3dcb6e.csv
965965
Chain 1 save_cmdstan_config = false (Default)
966966
Chain 1 num_threads = 1 (Default)
967967
Chain 1 Gradient evaluation took 2e-06 seconds

dev/articles/cmdstanr.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/articles/cmdstanr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ fit <- mod$sample(
225225

226226
All 4 chains finished successfully.
227227
Mean chain execution time: 0.0 seconds.
228-
Total execution time: 0.3 seconds.
228+
Total execution time: 0.2 seconds.
229229

230230
There are many more arguments that can be passed to the `$sample()`
231231
method. For details follow this link to its separate documentation page:

dev/articles/profiling.html

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/articles/profiling.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ fit$profiles()
122122

123123
[[1]]
124124
name thread_id total_time forward_time reverse_time chain_stack
125-
1 likelihood 140429872473920 0.649804310 0.51470404 0.135100270 52356
126-
2 priors 140429872473920 0.004674855 0.00361879 0.001056065 34904
125+
1 likelihood 140022010054464 0.633659140 0.510612660 0.123046480 52356
126+
2 priors 140022010054464 0.003490784 0.002644128 0.000846656 34904
127127
no_chain_stack autodiff_calls no_autodiff_calls
128128
1 34921452 17452 1
129129
2 34904 17452 1
@@ -181,11 +181,11 @@ fit_glm$profiles()
181181

182182
[[1]]
183183
name thread_id total_time forward_time reverse_time chain_stack
184-
1 priors 140382869559104 0.004029193 0.003030215 0.000998978 34214
185-
2 likelihood 140382869559104 0.433201050 0.432222980 0.000978068 51321
184+
1 likelihood 140089077380928 0.422290020 0.421451410 0.000838611 51321
185+
2 priors 140089077380928 0.003352894 0.002559725 0.000793169 34214
186186
no_chain_stack autodiff_calls no_autodiff_calls
187-
1 34214 17107 1
188-
2 17107 17107 1
187+
1 17107 17107 1
188+
2 34214 17107 1
189189

190190
We can see from the `total_time` column that the likelihood computation
191191
is faster than in the previous model.
@@ -214,7 +214,7 @@ per_gradient_timing <- profile_chain_1$total_time/profile_chain_1$autodiff_calls
214214
print(per_gradient_timing) # two elements for the two profile statements in the model
215215
```
216216

217-
[1] 3.723380e-05 2.678693e-07
217+
[1] 3.630868e-05 2.000220e-07
218218

219219
### Accessing and saving the profile files
220220

@@ -228,7 +228,7 @@ The paths of the profiling CSV files can be retrieved using
228228
fit$profile_files()
229229
```
230230

231-
[1] "/tmp/RtmpmAbDi2/model_96c18d764c15ce710d63062fb5f15758-profile-202607110143-1-80693a.csv"
231+
[1] "/tmp/Rtmpc2UoPY/model_96c18d764c15ce710d63062fb5f15758-profile-202607111846-1-806863.csv"
232232

233233
These can be saved to a more permanent location with the
234234
`$save_profile_files()` method.

dev/pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ articles:
88
posterior: posterior.html
99
profiling: profiling.html
1010
r-markdown: r-markdown.html
11-
last_built: 2026-07-11T01:31Z
11+
last_built: 2026-07-11T18:35Z
1212
urls:
1313
reference: https://mc-stan.org/cmdstanr/reference
1414
article: https://mc-stan.org/cmdstanr/articles

0 commit comments

Comments
 (0)