99from scipy .integrate import nquad
1010from scipy .linalg import det
1111
12- from pysatl_core .distributions import (
13- SamplingStrategy ,
14- )
1512from pysatl_core .distributions .support import (
1613 ContinuousSupport ,
1714 SupportByPredicate ,
@@ -73,7 +70,6 @@ def __init__(
7370 name : str = "ExponentialFamily" ,
7471 distr_type : DistributionType | Callable [[Parametrization ], DistributionType ],
7572 distr_parametrizations : list [ParametrizationName ],
76- sampling_strategy : SamplingStrategy ,
7773 support_by_parametrization : SupportArg = None ,
7874 ):
7975 self ._sufficient = sufficient_statistics
@@ -99,7 +95,6 @@ def __init__(
9995 distr_type = distr_type ,
10096 distr_parametrizations = distr_parametrizations ,
10197 distr_characteristics = distr_characteristics ,
102- sampling_strategy = sampling_strategy ,
10398 support_by_parametrization = support_by_parametrization ,
10499 )
105100 parametrization (family = self , name = "theta" )(ExponentialFamilyParametrization )
@@ -137,7 +132,6 @@ def conjugate_sufficient(
137132
138133 if theta not in self ._parameter_space :
139134 return np .full (len (theta ) + 1 , float ("-inf" ))
140- # print("Current sufficient:", theta, self._log_partition(theta))
141135 return np .append (theta , self ._log_partition (theta ))
142136
143137 def conjugate_log_partition (
@@ -178,7 +172,6 @@ def conjugate_sufficient_accepts(
178172 sufficient_statistics_values = self ._parameter_space , # TODO: write convex hull for this
179173 parameter_space = SupportByPredicate (conjugate_sufficient_accepts ), # type: ignore[arg-type]
180174 name = self .name ,
181- sampling_strategy = self .sampling_strategy ,
182175 distr_type = self ._distr_type ,
183176 distr_parametrizations = self .parametrization_names ,
184177 support_by_parametrization = self .support_resolver ,
@@ -213,7 +206,6 @@ def new_normalization(x: Any) -> Any:
213206 name = f"Transformed{ self ._name } " ,
214207 distr_type = self ._distr_type ,
215208 distr_parametrizations = self .parametrization_names ,
216- sampling_strategy = self .sampling_strategy ,
217209 support_by_parametrization = self .support_resolver ,
218210 )
219211
0 commit comments