@@ -288,12 +288,10 @@ def optimize(
288288 or to a temporary directory which is deleted upon session exit.
289289
290290 Output files are either written to a temporary directory or to the
291- specified output directory. Output filenames correspond to the template
292- '<model_name>-<YYYYMMDDHHMM>-<chain_id>' plus the file suffix which is
293- either '.csv' for the CmdStan output or '.txt' for
294- the console messages, e.g. 'bernoulli-201912081451-1.csv'.
295- Output files written to the temporary directory contain an additional
296- 8-character random string, e.g. 'bernoulli-201912081451-1-5nm6as7u.csv'.
291+ specified output directory. Optimize output filenames correspond to
292+ the template '<model_name>-<YYYYMMDDHHMM>' plus the file suffix which is
293+ either '.csv' for the CmdStan output or '_stdout.txt' for
294+ the console messages, e.g. 'bernoulli-20251107142835.csv'.
297295
298296 :param data: Values for all data variables in the model, specified
299297 either as a dictionary with entries matching the data variables,
@@ -328,7 +326,7 @@ def optimize(
328326
329327 :param save_profile: Whether or not to profile auto-diff operations in
330328 labelled blocks of code. If ``True``, CSV outputs are written to
331- file '<model_name>-<YYYYMMDDHHMM>-profile-<chain_id> '.
329+ file '<model_name>-<YYYYMMDDHHMM>_profile.csv '.
332330 Introduced in CmdStan-2.26.
333331
334332 :param algorithm: Algorithm to use. One of: 'BFGS', 'LBFGS', 'Newton'
@@ -497,11 +495,15 @@ def sample(
497495
498496 Output files are either written to a temporary directory or to the
499497 specified output directory. Ouput filenames correspond to the template
500- '<model_name>-<YYYYMMDDHHMM>-<chain_id>' plus the file suffix which is
501- either '.csv' for the CmdStan output or '.txt' for
502- the console messages, e.g. 'bernoulli-201912081451-1.csv'.
503- Output files written to the temporary directory contain an additional
504- 8-character random string, e.g. 'bernoulli-201912081451-1-5nm6as7u.csv'.
498+ '<model_name>-<YYYYMMDDHHMM>' plus additional bits to identify which
499+ output file it corresponds to. CmdStan output will suffix with
500+ '_<chain_id>.csv' if there is more than one chain, and simply'.csv'
501+ in the single-chain case. For example, 'bernoulli-20251107144515_1.csv'.
502+ Console message output is written to a text file suffixed
503+ `_stdout_<chain_id>.txt` if each chain executes in a separate process
504+ (default behavior) or simply `_stdout.txt` if done so in a single
505+ process, such as when STAN_THREADS is enabled and you are sampling
506+ more than one chain.
505507
506508 :param data: Values for all data variables in the model, specified
507509 either as a dictionary with entries matching the data variables,
@@ -634,14 +636,17 @@ def sample(
634636 :param save_latent_dynamics: Whether or not to output the position and
635637 momentum information for the model parameters (unconstrained).
636638 If ``True``, CSV outputs are written to an output file
637- '<model_name>-<YYYYMMDDHHMM>-diagnostic- <chain_id>',
638- e.g. 'bernoulli-201912081451-diagnostic-1 .csv', see
639+ '<model_name>-<YYYYMMDDHHMM>_diagnostic_ <chain_id>',
640+ e.g. 'bernoulli-201912081451_diagnostic_1 .csv', see
639641 https://mc-stan.org/docs/cmdstan-guide/stan_csv.html,
640642 section "Diagnostic CSV output file" for details.
641643
642644 :param save_profile: Whether or not to profile auto-diff operations in
643645 labelled blocks of code. If ``True``, CSV outputs are written to
644- file '<model_name>-<YYYYMMDDHHMM>-profile-<chain_id>'.
646+ file '<model_name>-<YYYYMMDDHHMM>_profile_<chain_id>.csv' if each
647+ chain runs in its own process, otherwise
648+ '<model_name>-<YYYYMMDDHHMM>_profile.csv' if all chains run in a
649+ single process.
645650 Introduced in CmdStan-2.26, see
646651 https://mc-stan.org/docs/cmdstan-guide/stan_csv.html,
647652 section "Profiling CSV output file" for details.
@@ -955,12 +960,16 @@ def generate_quantities(
955960 or to a temporary directory which is deleted upon session exit.
956961
957962 Output files are either written to a temporary directory or to the
958- specified output directory. Output filenames correspond to the template
959- '<model_name>-<YYYYMMDDHHMM>-<chain_id>' plus the file suffix which is
960- either '.csv' for the CmdStan output or '.txt' for
961- the console messages, e.g. 'bernoulli-201912081451-1.csv'.
962- Output files written to the temporary directory contain an additional
963- 8-character random string, e.g. 'bernoulli-201912081451-1-5nm6as7u.csv'.
963+ specified output directory. Ouput filenames correspond to the template
964+ '<model_name>-<YYYYMMDDHHMM>' plus additional bits to identify which
965+ output file it corresponds to. CmdStan output will suffix with
966+ '_<chain_id>.csv' if there is more than one chain, and simply'.csv'
967+ in the single-chain case. For example, 'bernoulli-20251107144515_1.csv'.
968+ Console message output is written to a text file suffixed
969+ `_stdout_<chain_id>.txt` if each chain executes in a separate process
970+ (default behavior) or simply `_stdout.txt` if done so in a single
971+ process, such as when STAN_THREADS is enabled and you are sampling
972+ more than one chain.
964973
965974 :param data: Values for all data variables in the model, specified
966975 either as a dictionary with entries matching the data variables,
@@ -1146,11 +1155,9 @@ def variational(
11461155
11471156 Output files are either written to a temporary directory or to the
11481157 specified output directory. Output filenames correspond to the template
1149- '<model_name>-<YYYYMMDDHHMM>-<chain_id>' plus the file suffix which is
1150- either '.csv' for the CmdStan output or '.txt' for
1151- the console messages, e.g. 'bernoulli-201912081451-1.csv'.
1152- Output files written to the temporary directory contain an additional
1153- 8-character random string, e.g. 'bernoulli-201912081451-1-5nm6as7u.csv'.
1158+ '<model_name>-<YYYYMMDDHHMM>' plus the file suffix which is
1159+ either '.csv' for the CmdStan output or '_stdout.txt' for
1160+ the console messages, e.g. 'bernoulli-201912081451.csv'.
11541161
11551162 :param data: Values for all data variables in the model, specified
11561163 either as a dictionary with entries matching the data variables,
@@ -1429,7 +1436,7 @@ def pathfinder(
14291436
14301437 :param save_profile: Whether or not to profile auto-diff operations in
14311438 labelled blocks of code. If ``True``, CSV outputs are written to
1432- file '<model_name>-<YYYYMMDDHHMM>-profile-<path_id> '.
1439+ file '<model_name>-<YYYYMMDDHHMM>_profile.csv '.
14331440 Introduced in CmdStan-2.26, see
14341441 https://mc-stan.org/docs/cmdstan-guide/stan_csv.html,
14351442 section "Profiling CSV output file" for details.
@@ -1659,7 +1666,7 @@ def laplace_sample(
16591666
16601667 :param save_profile: Whether or not to profile auto-diff operations in
16611668 labelled blocks of code. If ``True``, CSV outputs are written to
1662- file '<model_name>-<YYYYMMDDHHMM>-profile-<path_id> '.
1669+ file '<model_name>-<YYYYMMDDHHMM>_profile.csv '.
16631670 Introduced in CmdStan-2.26, see
16641671 https://mc-stan.org/docs/cmdstan-guide/stan_csv.html,
16651672 section "Profiling CSV output file" for details.
0 commit comments