Skip to content

Commit 846eee0

Browse files
committed
use numpy style docs
1 parent 0af21f7 commit 846eee0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pymc_marketing/mmm/builders/deserializers.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ def is_alternative_prior(data: Any) -> bool:
6262

6363

6464
def deserialize_alternative_prior(data: dict[str, Any]) -> Prior:
65-
"""
66-
Alternative deserializer that recursively handles all nested parameters.
65+
"""Alternative deserializer that recursively handles all nested parameters.
6766
6867
This implementation is more general and handles cases where any parameter
6968
might be a nested prior, and also extracts centered and transform parameters.
@@ -72,15 +71,16 @@ def deserialize_alternative_prior(data: dict[str, Any]) -> Prior:
7271
--------
7372
This handles cases like:
7473
75-
```yaml
76-
distribution: Gamma
77-
alpha: 1
78-
beta:
79-
distribution: HalfNormal
80-
sigma: 1
81-
dims: channel
82-
dims: [brand, channel]
83-
```
74+
.. code-block:: yaml
75+
76+
distribution: Gamma
77+
alpha: 1
78+
beta:
79+
distribution: HalfNormal
80+
sigma: 1
81+
dims: channel
82+
dims: [brand, channel]
83+
8484
"""
8585
data = copy.deepcopy(data)
8686

0 commit comments

Comments
 (0)