Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

연습문제 5번에서 에러가 발생하는데 이유를 모르겠습니다 #2

Open
ChaminLee opened this issue Jan 24, 2019 · 0 comments

Comments

@ChaminLee
Copy link

param_grid = [
{'preparation__num__imputer__strategy': ['mean','median',
'most_frquent'],
'feature_selection__k': list(range(1, len(feature_imp) + 1))}
]

grid_search_prep = GridSearchCV(final_pipeline,param_grid,
cv=5, scoring='neg_mean_squared_error',
n_jobs=-1)

grid_search_prep.fit(housing, housing_labels)

feature_importances -> feature_imp
prepare_select_and_predict_pipeline -> final_pipeline으로 바꿔서 사용했습니다

다음과 같은 에러가 발샘합니다.
'NoneType' object has no attribute 'set_params'

n_jobs를 바꿔주어도 해결이 안됩니당.. 봐주시면 감사하겠습니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant