Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- data
- function
- IN
- len()
- insert()
- count()
- list
- del
- DataAccess
- Python
- pandas
- wcss
- 덴드로그램
- DataFrame
- sklearn
- 분류 결과표
- Machine Learning
- nan
- dendrogram
- matplotlib
- Dictionary
- hierarchical_clustering
- 최솟값
- 반복문
- append()
- 최댓값
- analizer
- numpy
- string
- elbow method
Archives
- Today
- Total
목록analizer (1)
개발공부

CountVectorizing 카운터 벡터라이징 여러개의 문자열데이터에서 각 단어별로 쪼개 해당 단어가 몇개씩 나왔는지 계산해 변환해준다, 예제 from sklearn.feature_extraction.text import CountVectorizer sample_data = ['This is the first document', 'I loved them', 'This document is the second document', 'I am loving you', 'And this is the third one'] vec = CountVectorizer() #fit_transform() 함수를 사용해 sample_data의 문자열의 모든 단어에 대해 # 각 리스트요소마다 각 단어에 대해 몇개씩 있는지를 학..
Python/Machine Learning
2022. 5. 11. 17:50