@@ -50,7 +50,7 @@ def __init__(
5050 self .distribution_name = distribution_name
5151 self .distribution_constructor = (
5252 distribution_constructor
53- or lwd .get_distribution_constructor (self .distribution_name )
53+ or lwd .utils . get_distribution_constructor (self .distribution_name )
5454 )
5555 self .lambertw_type = base .LambertWType (lambertw_type )
5656 self .max_iter = max_iter
@@ -73,14 +73,14 @@ def _initialize_params(self, data: np.ndarray):
7373 if self .lambertw_type == base .LambertWType .H :
7474 self .igmm = igmm .IGMM (
7575 lambertw_type = self .lambertw_type ,
76- location_family = lwd .is_location_family (self .distribution_name ),
76+ location_family = lwd .utils . is_location_family (self .distribution_name ),
7777 )
7878 self .igmm .fit (data )
7979 x_init = self .igmm .transform (data )
8080
8181 lambertw_params_init = self .igmm .tau .lambertw_params
8282 else :
83- if lwd .is_location_family (self .distribution_name ):
83+ if lwd .utils . is_location_family (self .distribution_name ):
8484 # Default to Normal distriubtion for location family.
8585 params_data = ud .estimate_params (data , "Normal" )
8686 loc_init = params_data ["loc" ]
@@ -92,7 +92,7 @@ def _initialize_params(self, data: np.ndarray):
9292 scale_init = 1.0 / params_data ["rate" ]
9393
9494 z_init = (data - loc_init ) / scale_init
95- if lwd .is_location_family (self .distribution_name ):
95+ if lwd .utils . is_location_family (self .distribution_name ):
9696 gamma_init = igmm .gamma_taylor (z_init )
9797 else :
9898 gamma_init = 0.01
0 commit comments