@@ -400,9 +400,9 @@ def _sample(
400400 ** filter_kwargs (kwargs , self .inference_network .sample ),
401401 )
402402
403- def summary_outputs (self , data : Mapping [str , np .ndarray ], ** kwargs ):
403+ def summaries (self , data : Mapping [str , np .ndarray ], ** kwargs ):
404404 """
405- Computes the summary outputs of given data.
405+ Computes the summaries of given data.
406406
407407 The `data` dictionary is preprocessed using the `adapter` and passed through the summary network.
408408
@@ -415,7 +415,7 @@ def summary_outputs(self, data: Mapping[str, np.ndarray], **kwargs):
415415
416416 Returns
417417 -------
418- summary_outputs : np.ndarray
418+ summaries : np.ndarray
419419 Log-probabilities of the distribution `p(inference_variables | inference_conditions, h(summary_conditions))`
420420
421421 Raises
@@ -425,13 +425,13 @@ def summary_outputs(self, data: Mapping[str, np.ndarray], **kwargs):
425425 by the summary network.
426426 """
427427 if self .summary_network is None :
428- raise ValueError ("A summary network is required to compute summary outputs ." )
428+ raise ValueError ("A summary network is required to compute summeries ." )
429429 data_adapted = self .adapter (data , strict = False , stage = "inference" , ** kwargs )
430430 if "summary_variables" not in data_adapted or data_adapted ["summary_variables" ] is None :
431- raise ValueError ("Summary variables are required to compute summary outputs " )
431+ raise ValueError ("Summary variables are required to compute summaries. " )
432432 summary_variables = keras .ops .convert_to_tensor (data_adapted ["summary_variables" ])
433- summary_outputs = self .summary_network (summary_variables , ** filter_kwargs (kwargs , self .summary_network .call ))
434- return summary_outputs
433+ summaries = self .summary_network (summary_variables , ** filter_kwargs (kwargs , self .summary_network .call ))
434+ return summaries
435435
436436 def log_prob (self , data : Mapping [str , np .ndarray ], ** kwargs ) -> np .ndarray | dict [str , np .ndarray ]:
437437 """
0 commit comments