-
-
Save quantra-go-algo/9233e548f91ea238e54de02fd1d9665b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imp = SimpleImputer(missing_values=np.nan, strategy='mean') | |
steps = [('imputation', imp), | |
('scaler',StandardScaler()), | |
('lasso',Lasso())] | |
pipeline =Pipeline(steps) | |
parameters = {'lasso__alpha':np.arange(0.0001,10,.0001), | |
'lasso__max_iter':np.random.uniform(100,100000,4)} | |
reg = rcv(pipeline, parameters,cv=5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment