최근 포스트

[Python] 기초

최대 1 분 소요

□ 사칙연산 a ** b : a^b a // b : 몫 a % b : 나머지 # e.g. > 5**2 # 25 > 5//2 # 2 > 5%2 # 1 □ 이스케이프 코드 \n: 줄 바꿈 \t: 탭 \: \ 표현 \r \f ...

[Python] Mlxtend Library

최대 1 분 소요

Mlxtend Library apriori 함수를 이용한 빈발 아이템 집합 탐색과, association_rules 함수를 이용하여 연관규칙을 탐색하는 두 단계로 수행 ■ 라이브러리 호출 > from mlxtend.frequent_patterns import...

[Python] Association Analysis (연관분석)

최대 1 분 소요

Assocication Rule analysis in Python > df # 주문당 제품 리스트 > product_list_per_order = df.groupby('order_id')['product_id'].apply(list).tolist() # 주문당 제품...

Sequence Data and Time Series Data

2 분 소요

※ Sequence Data (시퀀스 데이터) 각 요소가 (순서, 값) 형태로 구성된 데이터 분석 시 반드시 순서를 고려해야 함 로그 데이터 대부분이 순서가 있는 시퀀스 데이터임 e.g. 고객 구매 기록 / 고객 여정 / 웹 서핑 기록 ■ 시퀀스 데이터에서의 빈...

[Python] Clustering (군집화)

3 분 소요

※ Clustering using sklearn ■ 라이브러리 호출 > from sklearn.cluster import AgglomerativeClustering as AC ■ AgglomerativeClustering Method # 모델 인스턴스화 및 학습 ...