Skip to content

Commit e0d6b4f

Browse files
author
domosedy
committed
[refactor] remove comments in code
1 parent 8f69580 commit e0d6b4f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/pysatl_core/families/exponential_family.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ExponentialFamilyParametrization(Parametrization):
4343
Standard parametrization of Exponential Family.
4444
"""
4545

46-
theta: list[float] # TODO: mb more clever
46+
theta: list[float]
4747

4848

4949
class ExponentialConjugateHyperparameters:
@@ -167,7 +167,6 @@ def conjugate_sufficient(
167167
return [float("-inf"), float("-inf")]
168168

169169
parametrization = ExponentialFamilyParametrization([theta])
170-
# parametrization.theta = [theta]
171170
return [
172171
theta,
173172
self._log_partition(parametrization),
@@ -183,7 +182,6 @@ def pdf(theta: Any) -> Any:
183182
if not hasattr(theta, "__len__"):
184183
theta = [theta]
185184
parametrization = ExponentialFamilyParametrization(theta=theta)
186-
# parametrization.theta = theta
187185
return np.exp(np.dot(theta, alpha) + beta * self._log_partition(parametrization))[0]
188186

189187
all_value = nquad(

0 commit comments

Comments
 (0)