@requires_sklearn
def test_csp_pipeline():
 from sklearn.svm import SVC
 from sklearn.pipeline import Pipeline
 csp = CSP(reg=1)
 svc = SVC()
 pipe = Pipeline([('CSP', csp), ('SVC', svc)])
 pipe.set_params(CSP__reg=0.2)
 assert_true((pipe.get_params()['CSP__reg'] == 0.2))

@ requires_sklearn def test_csp_pipeline ( ) : from sklearn . svm import SVC from sklearn . pipeline import Pipeline csp = CSP ( reg = 1 ) svc = SVC ( ) pipe = Pipeline ( [ ( 'CSP' , csp ) , ( 'SVC' , svc ) ] ) pipe . set_params ( CSP__reg = 0.2 ) assert_true ( ( pipe . get_params ( ) [ 'CSP__reg' ] == 0.2 ) )
test if csp works in a pipeline .