Skip to content

Commit ee14b5b

Browse files
Jammy2211Jammy2211
authored andcommitted
remove print statements
1 parent fb9d8b9 commit ee14b5b

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

autofit/messages/composed_transform.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def transform(func):
3434
"""
3535

3636
@functools.wraps(func)
37-
def wrapper(self, x, xp):
37+
def wrapper(self, x, xp=np):
3838
x = self._transform(x)
3939
return func(self, x, xp)
4040

@@ -225,8 +225,8 @@ def invert_natural_parameters(
225225
return self.base_message.invert_natural_parameters(natural_parameters)
226226

227227
@transform
228-
def cdf(self, x):
229-
return self.base_message.cdf(x)
228+
def cdf(self, x, xp=np):
229+
return self.base_message.cdf(x, xp=xp)
230230

231231
def log_partition(self, xp=np) -> np.ndarray:
232232
return self.base_message.log_partition(xp=xp)

autofit/messages/normal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __init__(
111111
)
112112
self.mean, self.sigma = self.parameters
113113

114-
def cdf(self, x : Union[float, np.ndarray]) -> Union[float, np.ndarray]:
114+
def cdf(self, x : Union[float, np.ndarray], xp=np) -> Union[float, np.ndarray]:
115115
"""
116116
Compute the cumulative distribution function (CDF) of the Gaussian distribution
117117
at a given value or array of values `x`.

autofit/messages/truncated_normal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(
9696

9797
self.mean, self.sigma, self.lower_limit, self.upper_limit = self.parameters
9898

99-
def cdf(self, x: Union[float, np.ndarray]) -> Union[float, np.ndarray]:
99+
def cdf(self, x: Union[float, np.ndarray], xp=np) -> Union[float, np.ndarray]:
100100
"""
101101
Compute the cumulative distribution function (CDF) of the truncated Gaussian distribution
102102
at a given value or array of values `x`.

autofit/non_linear/search/mle/bfgs/search.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,6 @@ def samples_via_internal_from(
225225

226226
weight_list = len(log_likelihood_list) * [1.0]
227227

228-
print(parameter_lists)
229-
print(log_likelihood_list)
230-
print(log_prior_list)
231-
232228
sample_list = Sample.from_lists(
233229
model=model,
234230
parameter_lists=parameter_lists,

0 commit comments

Comments
 (0)