Skip to content

Commit

Permalink
Updating the metaclass elements
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Apr 3, 2024
1 parent 82e20fe commit a97ed8a
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions model/src/pyrenew/metaclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,26 +91,16 @@ def __init__(self, **kwargs):
@abstractmethod
def sample(
self,
random_variables: dict = None,
constants: dict = None,
**kwargs,
) -> tuple:
"""Sample method of the process
The method design in the class should have two dictionaries:
`random_variables` and `constants`.
- `randon_variables`: This dictionary contains any data that sample
function may pass to `numpyro.sample(obs=...)`.
- `constants`: Contains any data that the sample function does not pass
to `numpyro.sample(obs=...)`.
The method design in the class should have at least kwargs.
Parameters
----------
random_variables : dict, optional
Dictionary of random variables, defaults to None
constants : dict, optional
Dictionary of constants
kwargs : dict
Dictionary of arguments passed to the sample function.
Returns
-------
Expand Down Expand Up @@ -141,8 +131,7 @@ def validate() -> None:
@abstractmethod
def sample(
self,
random_variables: dict = None,
constants: dict = None,
**kwargs,
) -> tuple:
pass

Expand Down

0 comments on commit a97ed8a

Please sign in to comment.