Skip to content

Commit 90e7bf8

Browse files
committed
merge fix
2 parents f5c8506 + 0f9d767 commit 90e7bf8

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

cmdstanpy/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def __init__(
210210
get_logger().debug("TBB already found in load path")
211211

212212
if compile and self._exe_file is None:
213-
self.compile(force=compile == 'force')
213+
self.compile(force=str(compile).lower() == 'force')
214214
if self._exe_file is None:
215215
raise ValueError(
216216
'Unable to compile Stan model file: {}.'.format(

docsrc/workflow.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ numpy arrays or pandas.Series.
126126
Run the CmdStan inference engine
127127
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128128

129-
For each CmdStan inference method, there is a corresponding method on the :class:`CmdStanModel` class.
129+
For each CmdStan inference method, there is a corresponding method on the :class:`CmdStanModel` class.
130130
An example of each is provided in the `next section <examples.rst>`__
131131

132132
* The :meth:`~CmdStanModel.sample` method runs Stan's
@@ -136,14 +136,14 @@ An example of each is provided in the `next section <examples.rst>`__
136136
a sample from the posterior distribution of the model conditioned on the data.
137137

138138
* The :meth:`~CmdStanModel.variational` method runs Stan's
139-
`Automatic Differentiation Variational Inference (ADVI) algorithm <https://mc-stan.org/docs/reference-manual/vi-algorithms-chapter.html>`_.
139+
`Automatic Differentiation Variational Inference (ADVI) algorithm <https://mc-stan.org/docs/reference-manual/vi-algorithms-chapter.html>`_.
140140

141141
It returns a :class:`CmdStanVB` object which contains
142142
an approximation the posterior distribution in the unconstrained variable space.
143143

144144
* The :meth:`~CmdStanModel.optimize` runs one of
145145
`Stan's optimization algorithms <https://mc-stan.org/docs/reference-manual/optimization-algorithms-chapter.html>`_
146-
to find a mode of the density specified by the Stan program.
146+
to find a mode of the density specified by the Stan program.
147147

148148
It returns a :class:`CmdStanMLE` object.
149149

@@ -154,16 +154,16 @@ An example of each is provided in the `next section <examples.rst>`__
154154

155155
It returns a :class:`CmdStanGQ` object.
156156

157-
157+
158158
Validate, view, export the inference engine outputs
159159
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
160160

161-
The inference engine results objects
161+
The inference engine results objects
162162
:class:`CmdStanMCMC`, :class:`CmdStanVB`, :class:`CmdStanMLE` and :class:`CmdStanGQ,`
163163
contain the CmdStan method configuration information
164164
and the location of all output files produced.
165165
The provide a common set methods for accessing the inference results and metadata,
166-
as well as method-specific informational properties and methods.objects
166+
as well as method-specific informational properties and methods.objects
167167

168168
Metadata
169169
--------
@@ -191,14 +191,14 @@ the object's :attr:`~CmdStanMCMC.metadata` property.
191191
property specifies the names, dimensions of the Stan model variables.
192192

193193
Output data
194-
-----------
194+
-----------
195195

196196
The CSV data is assembled into the inference result object.
197197
CmdStanPy provides accessor methods which return this information
198198
either as columnar data (i.e., in terms of the CSV file columns),
199199
or as method and model variables.
200200

201-
The :meth:`~CmdStanMCMC.draws` and :meth:`~CmdStanMCMC.draws_pd` methods
201+
The :meth:`~CmdStanMCMC.draws` and :meth:`~CmdStanMCMC.draws_pd` methods
202202
for both :class:`CmdStanMCMC` and :class:`CmdStanGQ` return the sample contents
203203
in columnar format, as a numpy.ndarray or pandas.DataFrame, respectively. Similarly,
204204
the :meth:`~CmdStanMCMC.draws_xr` method of these two objects returns the sample

0 commit comments

Comments
 (0)