@@ -35,8 +35,8 @@ def get_min_param_count(cls) -> int:
3535
3636class UnifSettings (TransSettingsValidation ):
3737 name : Literal ["uniform" ] = "uniform"
38- min : float = 0.0
39- max : float = 1.0
38+ min : float
39+ max : float
4040
4141 @model_validator (mode = "after" )
4242 def valid_unif_params (self ) -> Self :
@@ -55,8 +55,8 @@ def transform_numpy(self, x: np.ndarray) -> np.ndarray:
5555
5656class LogUnifSettings (TransSettingsValidation ):
5757 name : Literal ["logunif" ] = "logunif"
58- min : float = 0.1
59- max : float = 1.0
58+ min : float
59+ max : float
6060
6161 @model_validator (mode = "after" )
6262 def valid_logunif_params (self ) -> Self :
@@ -88,9 +88,9 @@ def transform_numpy(self, x: np.ndarray) -> np.ndarray:
8888
8989class DUnifSettings (TransSettingsValidation ):
9090 name : Literal ["dunif" ] = "dunif"
91- steps : int = 1000
92- min : float = 0.0
93- max : float = 1.0
91+ steps : int
92+ min : float
93+ max : float
9494
9595 @model_validator (mode = "after" )
9696 def valid_dunif_params (self ) -> Self :
@@ -123,8 +123,8 @@ def transform_numpy(self, x: np.ndarray) -> np.ndarray:
123123
124124class NormalSettings (TransSettingsValidation ):
125125 name : Literal ["normal" ] = "normal"
126- mean : float = 0.0
127- std : float = 1.0
126+ mean : float
127+ std : float
128128
129129 @field_validator ("std" )
130130 @classmethod
@@ -139,8 +139,8 @@ def transform_numpy(self, x: np.ndarray) -> np.ndarray:
139139
140140class LogNormalSettings (TransSettingsValidation ):
141141 name : Literal ["lognormal" ] = "lognormal"
142- mean : float = 0.0
143- std : float = 1.0
142+ mean : float
143+ std : float
144144
145145 @field_validator ("std" )
146146 @classmethod
@@ -189,10 +189,10 @@ def transform_numpy(self, x: np.ndarray) -> np.ndarray:
189189
190190class TruncNormalSettings (TransSettingsValidation ):
191191 name : Literal ["truncated_normal" ] = "truncated_normal"
192- mean : float = 0.0
193- std : float = 1.0
194- min : float = 0.0
195- max : float = 1.0
192+ mean : float
193+ std : float
194+ min : float
195+ max : float
196196
197197 @field_validator ("std" )
198198 @classmethod
@@ -225,17 +225,17 @@ def transform_numpy(self, x: np.ndarray) -> np.ndarray:
225225
226226class ConstSettings (TransSettingsValidation ):
227227 name : Literal ["const" ] = "const"
228- value : float = 0.0
228+ value : float
229229
230230 def transform_numpy (self , x : np .ndarray ) -> np .ndarray :
231231 return np .full_like (x , self .value , dtype = np .float64 )
232232
233233
234234class TriangularSettings (TransSettingsValidation ):
235235 name : Literal ["triangular" ] = "triangular"
236- min : float = 0.0
237- mode : float = 0.5
238- max : float = 1.0
236+ min : float
237+ mode : float
238+ max : float
239239
240240 @model_validator (mode = "after" )
241241 def valid_triangular_params (self ) -> Self :
@@ -280,10 +280,10 @@ def transform_numpy(self, x: np.ndarray) -> np.ndarray:
280280
281281class ErrfSettings (TransSettingsValidation ):
282282 name : Literal ["errf" ] = "errf"
283- min : float = 0.0
284- max : float = 1.0
285- skewness : float = 0.0
286- width : float = 1.0
283+ min : float
284+ max : float
285+ skewness : float
286+ width : float
287287
288288 @field_validator ("width" )
289289 @classmethod
@@ -318,11 +318,11 @@ def transform_numpy(self, x: np.ndarray) -> np.ndarray:
318318
319319class DerrfSettings (TransSettingsValidation ):
320320 name : Literal ["derrf" ] = "derrf"
321- steps : float = 1000.0
322- min : float = 0.0
323- max : float = 1.0
324- skewness : float = 0.0
325- width : float = 1.0
321+ steps : float
322+ min : float
323+ max : float
324+ skewness : float
325+ width : float
326326
327327 @model_validator (mode = "after" )
328328 def valid_derrf_params (self ) -> Self :
@@ -388,9 +388,9 @@ class PertSettings(TransSettingsValidation):
388388 model_config = {"allow_inf_nan" : False }
389389
390390 name : Literal ["pert" ] = "pert"
391- min : float = 0.0
392- mode : float = 0.5
393- max : float = 1.0
391+ min : float
392+ mode : float
393+ max : float
394394 scale : float = 4.0
395395
396396 @classmethod
0 commit comments