Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pipeline = sklearn.pipeline.Pipeline([
('Replace nans',
preprocessing.Imputer(strategy='mean')),
('Scale data',
preprocessing.StandardScaler()),
('Feature Selection',
SelectPercentile(f_regression, percentile=60)),
('Regression',
ensemble.ExtraTreesRegressor(
n_estimators=550,
max_features='sqrt',
n_jobs=-1,
random_state=RANDOM_STATE,
oob_score=True,
bootstrap=True,
)),
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.