5_gradient_boosting에서 코드에러가 납니다.
154
4 asked
train_X, test_X, train_y, test_id_idx = hourse_price_preprocessor.get_train_test_split_dataset(train_dataset_dir, test_dataset_dir)
에서
AttributeError Traceback (most recent call last)
in ()
----> 1 train_X, test_X, train_y, test_id_idx = hourse_price_preprocessor.get_train_test_split_dataset(train_dataset_dir, test_dataset_dir)
~\OneDrive\2018\computer\ml\code\ch13_Ensemble\hourse_price_preprocessor.py in get_train_test_split_dataset(train_dataset_filename, test_dataset_filename)
53 #Train
54 x_scaled_data = np.hstack((x_quality_scaled,x_quantitiy_scaled))
---> 55 Y_scaled_data = target_value.reshape(-1,)
56
57
C:\ProgramData\Miniconda3\lib\site-packages\pandas\core\generic.py in __getattr__(self, name)
4374 if self._info_axis._can_hold_identifiers_and_holds_name(name):
4375 return self[name]
-> 4376 return object.__getattribute__(self, name)
4377
4378 def __setattr__(self, name, value):
AttributeError: 'Series' object has no attribute 'reshape'
라고 에러납니다. Series는 reshape가 안된다네요..! preprocessor파일 따로 수정한적이 없는데 실행한 파일과 올려주신파일이 다른걸까요?
Answer 1
0
기본적으로 데이터를 dir 패스에 제대로된 파일만 들어간다면 따로 에러가 안나게 설정되어 있습니다. 혹시 파일 자체를 수정하거나 다른 파일을 넣은건 아닌지 확인 부탁드리겠습니다.
environment setup - windows 사용자는 어떻게
0
214
0
Chapter 10에 대한 강의안이 없는것 같습니다.
0
287
0
이게 이렇게 어려운 이유가 뭐죠?
0
231
0
Python 코드 실행을 위한 코드 다운로드 관련
0
252
1
matrix product문제 질문 드립니다.
0
222
0
강의자료중 코드는 다운로드 안 되나요?
0
192
0
scikit-learn preprocessing 할때 Data Frame object has no attribute 'as matrix'라는 오류가 뜹니다
0
351
1
pdf 강의자료 다운로드 관련
0
214
1
과제 제출 시 위 에러가 나옵니다. 어떻게 해야 하나요?
0
228
1
Gradient Boosting에서 Light GBM, XGBOOST
0
331
1
np.where 값 리턴
0
304
1
숙제 제출 오류
0
218
1
다른분들이 짠 코드를 볼수있을까요?
0
205
1
house data 전처리 코드 관련 질문
0
683
1
설치이후 Pandas import 문제
0
1629
2
import sklearn import preprocessing 부터 에러가 납니다.
0
389
2
엑셀 파일 생성이 안됩니다.
0
489
2
딥러닝 강좌 관련해서 질문올립니다.
0
214
1
ch11 강의 코드
0
216
0
코드를 볼수 가 없어요
0
272
0
소스코드
0
170
1
질문있습니다
0
148
1
deactivate 가 되지 않는 경우
0
253
1
kaggle_titanic_pclass one-hot encoding에 대해 질문드립니다.
0
160
0

