Skip to content

Commit

Permalink
up default compiler optimization level to 2; docstring edits
Browse files Browse the repository at this point in the history
  • Loading branch information
mitzimorris committed Jun 24, 2019
1 parent 4bdd80f commit 5645a6b
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions cmdstanpy/cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

def compile_model(
stan_file: str = None,
opt_lvl: int = 1,
opt_lvl: int = 2,
overwrite: bool = False,
include_paths: List[str] = None,
) -> Model:
Expand Down Expand Up @@ -175,23 +175,21 @@ def sample(
per iteration.
:param metric: Specification of the mass matrix, either as a
vector consisting of the diagonal elements
of the covariance matrix (``diag`` or ``diag_e``) or a
the full covariance matrix (``dense`` or ``dense_e``).
If the value of the
metric argument is a string other than ``diag``, ``diag_e``,
``dense``, or ``dense_e``, it must be a valid filepath to a JSON or
Rdump file which contains an entry ``inv_metric`` whose
value is the diagonal vector or full covariance matrix.
This can be used to restart sampling with no adaptation
given the outputs of all chains from a previous run.
vector consisting of the diagonal elements of the covariance
matrix (``diag`` or ``diag_e``) or the full covariance matrix
(``dense`` or ``dense_e``).
If the value of the metric argument is a string other than
``diag``, ``diag_e``, ``dense``, or ``dense_e``, it must be
a valid filepath to a JSON or Rdump file which contains an entry
``inv_metric`` whose value is either the diagonal vector or
the full covariance matrix. This can be used to restart sampling
with no adaptation given the outputs of all chains from a previous run.
If the value of the metric argument is a list of paths, its
length must match the number of chains and all paths must be
unique.
:param step_size: Initial stepsize for HMC sampler. The value is either
a single number or a list of numbers which will be used as the global
or per-chain initial step_size, respectively.
Expand Down

0 comments on commit 5645a6b

Please sign in to comment.