Skip to content

Commit b185fe4

Browse files
even more docstring cosmetics
1 parent 64f2b98 commit b185fe4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/glum/_glm.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _parse_formula(
235235
Parse and transform the formula for use in a GeneralizedLinearRegressor.
236236
237237
The left-hand side and right-hand side of the formula are separated. If an
238-
intercept is present, it wil be removed from the right-hand side, and a
238+
intercept is present, it will be removed from the right-hand side, and a
239239
boolean flag to indicate whether or not an intercept should be added to
240240
the model will be returned.
241241
@@ -249,7 +249,8 @@ def _parse_formula(
249249
Returns
250250
-------
251251
tuple[Formula, Formula]
252-
The left-hand side and right-hand sides of the formula."""
252+
The left-hand side and right-hand sides of the formula.
253+
"""
253254
if isinstance(formula, str):
254255
parser = DefaultFormulaParser(include_intercept=include_intercept)
255256
terms = parser.get_terms(formula)
@@ -2208,6 +2209,7 @@ def covariance_matrix(
22082209
22092210
mu : array-like, optional, default=None
22102211
Array with predictions. Estimated if absent.
2212+
22112213
offset : array-like, optional, default=None
22122214
Array with additive offsets.
22132215
@@ -2218,19 +2220,18 @@ def covariance_matrix(
22182220
The dispersion parameter. Estimated if absent.
22192221
22202222
robust : boolean, optional, default=None
2221-
22222223
Whether to compute robust standard errors instead of normal ones.
22232224
If not specified, the model's ``robust`` attribute is used.
2224-
clusters : array-like, optional, default=None
22252225
2226+
clusters : array-like, optional, default=None
22262227
Array with cluster membership. Clustered standard errors are
22272228
computed if clusters is not None.
22282229
22292230
expected_information : boolean, optional, default=None
22302231
Whether to use the expected or observed information matrix.
22312232
Only relevant when computing robust standard errors.
2232-
22332233
If not specified, the model's ``expected_information`` attribute is used.
2234+
22342235
store_covariance_matrix : boolean, optional, default=False
22352236
Whether to store the covariance matrix in the model instance.
22362237
If a covariance matrix has already been stored, it will be overwritten.

0 commit comments

Comments
 (0)