@@ -157,20 +157,6 @@ def _cube(x, fun_args):
157157@validate_params (
158158 {
159159 "X" : ["array-like" ],
160- "n_components" : [Interval (Integral , 1 , None , closed = "left" ), None ],
161- "algorithm" : [StrOptions ({"parallel" , "deflation" })],
162- "whiten" : [
163- Hidden (StrOptions ({"warn" })),
164- StrOptions ({"arbitrary-variance" , "unit-variance" }),
165- "boolean" ,
166- ],
167- "fun" : [StrOptions ({"logcosh" , "exp" , "cube" }), callable ],
168- "fun_args" : [dict , None ],
169- "max_iter" : [Interval (Integral , 1 , None , closed = "left" )],
170- "tol" : [Interval (Real , 0.0 , None , closed = "left" )],
171- "w_init" : ["array-like" , None ],
172- "whiten_solver" : [StrOptions ({"eigh" , "svd" })],
173- "random_state" : ["random_state" ],
174160 "return_X_mean" : ["boolean" ],
175161 "compute_sources" : ["boolean" ],
176162 "return_n_iter" : ["boolean" ],
@@ -341,6 +327,7 @@ def my_g(x):
341327 whiten_solver = whiten_solver ,
342328 random_state = random_state ,
343329 )
330+ est ._validate_params ()
344331 S = est ._fit_transform (X , compute_sources = compute_sources )
345332
346333 if est ._whiten in ["unit-variance" , "arbitrary-variance" ]:
0 commit comments