로그인 바로가기 하위 메뉴 바로가기 본문 바로가기
난이도
기본

프로젝트로 배우는 데이터사이언스

임시 이미지 박조은
http://www.boostcourse.org/ds214/forum/136446
좋아요 1129 수강생 5805
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-30-994fd9fd6671> in <module>
      1 # 학습
----> 2 clf=clf.fit(X, Y)

D:\anaconda\lib\site-packages\sklearn\tree\_classes.py in fit(self, X, y, sample_weight, check_input, X_idx_sorted)
    896         """
    897 
--> 898         super().fit(
    899             X, y,
    900             sample_weight=sample_weight,

D:\anaconda\lib\site-packages\sklearn\tree\_classes.py in fit(self, X, y, sample_weight, check_input, X_idx_sorted)
    188 
    189         if is_classification:
--> 190             check_classification_targets(y)
    191             y = np.copy(y)
    192 

D:\anaconda\lib\site-packages\sklearn\utils\multiclass.py in check_classification_targets(y)
    181     if y_type not in ['binary', 'multiclass', 'multiclass-multioutput',
    182                       'multilabel-indicator', 'multilabel-sequences']:
--> 183         raise ValueError("Unknown label type: %r" % y_type)
    184 
    185 

ValueError: Unknown label type: 'continuous'

시작도 안했는데 ㅜㅜ 무슨 문제인지 모르겠네요 ㅜㅜ