목록기타/오류 해결 (13)
AI·빅데이터 융합 경영학 Study Note
NoneType' object has no attribute 'split'
# 각 모델별 prediction 저장 및 성능(Accuracy) 확인 pred_results = [] for clf in clfs : pred = clf.fit(X_train, y_train).predict(X_test) name = type(clf).__name__ pred_results.append(pd.Series(pred, name=name)) print("{:30s} {}".format(name, accuracy_score(y_test, pred))) 또는 from sklearn.ensemble import VotingClassifier # 위에서 평가한 모든 모델을 앙상블할 경우 voting = VotingClassifier(estimators = [(type(clf).__name__, cl..
기타/오류 해결
2023. 11. 9. 16:35