Skip to content

Ch5. 실행 오류 건 #1

Description

@SmilingSammy
  1. pandas 버전으로 인한 오류 예상 (제가 사용한 버전: 1.5.3)
  • pd.DataFrame(onehot, columns=vocabulary) 실행 시 ValueError: columns cannot be a set 오류가 발생합니다.
    pd.DataFrame(onehot, columns=list(vocabulary)) 로 수정하면 좋을 것 같습니다!
  1. scikit-learn 버전으로 인한 오류 예상 (제가 사용한 버전: 1.2.1)
  • cv.get_feature_names() -> cv.get_feature_names_out()
  • stopwords -> list(stopwords)
    • ex. tfidf = TfidfVectorizer(stop_words=stopwords) -> tfidf = TfidfVectorizer(stop_words=list(stopwords))

좋은 책 써주셔서 감사합니다 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions