Skip to content

Commit

Permalink
Change reference from InferenceMethod to ParameterInference. (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpesonen authored Mar 25, 2021
1 parent 4e17f5f commit 9036fa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions elfi/methods/inference/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self, model, discrepancy_name=None, output_names=None, **kwargs):
Additional outputs from the model to be included in the inference result, e.g.
corresponding summaries to the acquired samples
kwargs:
See InferenceMethod
See ParameterInference
"""
model, discrepancy_name = self._resolve_model(model, discrepancy_name)
Expand Down Expand Up @@ -332,7 +332,7 @@ def __init__(self, model, discrepancy_name=None, output_names=None, **kwargs):
Additional outputs from the model to be included in the inference result, e.g.
corresponding summaries to the acquired samples
kwargs:
See InferenceMethod
See ParameterInference
"""
model, discrepancy_name = self._resolve_model(model, discrepancy_name)
Expand Down Expand Up @@ -586,7 +586,7 @@ def __init__(self, model, discrepancy_name=None, output_names=None, **kwargs):
Additional outputs from the model to be included in the inference result, e.g.
corresponding summaries to the acquired samples
kwargs:
See InferenceMethod
See ParameterInference
"""
model, discrepancy_name = self._resolve_model(model, discrepancy_name)
Expand Down Expand Up @@ -695,7 +695,7 @@ def __init__(self,
densratio_estimation : DensityRatioEstimation, optional
Density ratio estimation object defining parameters for KLIEP
kwargs:
See InferenceMethod
See ParameterInference
"""
model, discrepancy_name = self._resolve_model(model, discrepancy_name)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_elfi_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_save_load(self, ma2):
class TestNodeReference:
def test_name_argument(self):
# This is important because it is used when passing NodeReferences as
# InferenceMethod arguments
# ParameterInference arguments
em.set_default_model()
ref = em.NodeReference(name='test')
assert str(ref) == 'test'
Expand Down

0 comments on commit 9036fa9

Please sign in to comment.