File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4949class 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 (
You can’t perform that action at this time.
0 commit comments