Python으로 배우는 사기 탐지
Charlotte Werger
Data Scientist

규칙 기반 시스템의 한계:

from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from sklearn import metrics# Step 1: split your features and labels into train and test data X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)# Step 2: Define which model you want to use model = LinearRegression()# Step 3: Fit the model to your training data model.fit(X_train, y_train)# Step 4: Obtain model predictions from your test data y_predicted = model.predict(X_test)# Step 5: Compare y_test to predictions and obtain performance metrics print (metrics.r2_score(y_test, y_predicted))
0.821206237313
2장. 지도학습: 기존 사기 레이블로 모델 학습
3장. 비지도학습: 레이블 없이 ‘이상’ 행동을 데이터로 판별
4장. 텍스트 데이터로 사기 탐지: 텍스트 마이닝과 토픽 모델링으로 모델 보강

Python으로 배우는 사기 탐지