inferpy.contextmanager package¶
Submodules¶
inferpy.contextmanager.data_model module¶
-
inferpy.contextmanager.data_model.
datamodel
(size=None)[source]¶ This context is used to declare a plateau model. Random Variables and Parameters will use a sample_shape defined by the argument size, or by the data_model.fit. If size is not specified, the default size 1, or the size specified by fit will be used.
-
inferpy.contextmanager.data_model.
get_sample_shape
(name)[source]¶ This function must be used inside a datamodel context (it is not checked here) If the parameters are not already expanded, then are now expanded.
- name (str):
The name of the variable to get its sample shape
- returns:
the sample_shape (number of samples of the datamodel). It is an integer, or ().