forked from ageron/handson-ml
-
Notifications
You must be signed in to change notification settings - Fork 272
연습문제 5번에서 에러가 발생하는데 이유를 모르겠습니다 #2
Copy link
Copy link
Open
Description
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를 바꿔주어도 해결이 안됩니당.. 봐주시면 감사하겠습니다!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels