@@ -157,20 +157,6 @@ def _cube(x, fun_args):
157
157
@validate_params (
158
158
{
159
159
"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" ],
174
160
"return_X_mean" : ["boolean" ],
175
161
"compute_sources" : ["boolean" ],
176
162
"return_n_iter" : ["boolean" ],
@@ -341,6 +327,7 @@ def my_g(x):
341
327
whiten_solver = whiten_solver ,
342
328
random_state = random_state ,
343
329
)
330
+ est ._validate_params ()
344
331
S = est ._fit_transform (X , compute_sources = compute_sources )
345
332
346
333
if est ._whiten in ["unit-variance" , "arbitrary-variance" ]:
0 commit comments