Skip to content

Commit 887fbbc

Browse files
committed
remove deprecated summaries function
The function was renamed to summarize in v2.0.4.
1 parent 3b380f8 commit 887fbbc

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

bayesflow/approximators/continuous_approximator.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import numpy as np
44

55
import keras
6-
import warnings
76

87
from bayesflow.adapters import Adapter
98
from bayesflow.networks import InferenceNetwork, SummaryNetwork
@@ -575,14 +574,6 @@ def summarize(self, data: Mapping[str, np.ndarray], **kwargs) -> np.ndarray:
575574

576575
return summaries
577576

578-
def summaries(self, data: Mapping[str, np.ndarray], **kwargs) -> np.ndarray:
579-
"""
580-
.. deprecated:: 2.0.4
581-
`summaries` will be removed in version 2.0.6, it was renamed to `summarize` which should be used instead.
582-
"""
583-
warnings.warn("`summaries` was renamed to `summarize` and will be removed in version 2.0.6.", FutureWarning)
584-
return self.summarize(data=data, **kwargs)
585-
586577
def log_prob(self, data: Mapping[str, np.ndarray], **kwargs) -> np.ndarray:
587578
"""
588579
Computes the log-probability of given data under the model. The `data` dictionary is preprocessed using the

bayesflow/approximators/model_comparison_approximator.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import keras
44
import numpy as np
5-
import warnings
65

76
from bayesflow.adapters import Adapter
87
from bayesflow.datasets import OnlineDataset
@@ -439,14 +438,6 @@ def summarize(self, data: Mapping[str, np.ndarray], **kwargs) -> np.ndarray:
439438

440439
return summaries
441440

442-
def summaries(self, data: Mapping[str, np.ndarray], **kwargs) -> np.ndarray:
443-
"""
444-
.. deprecated:: 2.0.4
445-
`summaries` will be removed in version 2.0.6, it was renamed to `summarize` which should be used instead.
446-
"""
447-
warnings.warn("`summaries` was renamed to `summarize` and will be removed in version 2.0.6.", FutureWarning)
448-
return self.summarize(data=data, **kwargs)
449-
450441
def _compute_logits(self, classifier_conditions: Tensor) -> Tensor:
451442
"""Helper to compute projected logits from the classifier network."""
452443
logits = self.classifier_network(classifier_conditions)

0 commit comments

Comments
 (0)