사기 vs 비사기 할당

Python으로 배우는 사기 탐지

Charlotte Werger

Data Scientist

클러스터된 데이터로 시작

Python으로 배우는 사기 탐지

클러스터 중심점 지정

Python으로 배우는 사기 탐지

클러스터 중심까지의 거리 정의

Python으로 배우는 사기 탐지

중심에서 가장 먼 점을 사기로 표시

Python으로 배우는 사기 탐지

중심까지의 거리에 따른 사기 표시

# Run the kmeans model on scaled data
kmeans = KMeans(n_clusters=6, random_state=42).fit(X_scaled)

# Get the cluster number for each datapoint X_clusters = kmeans.predict(X_scaled)
# Save the cluster centroids X_clusters_centers = kmeans.cluster_centers_
# Calculate the distance to the cluster centroid for each point dist = [np.linalg.norm(x-y) for x,y in zip(X_scaled, X_clusters_centers[X_clusters])]
# Create predictions based on distance km_y_pred = np.array(dist) km_y_pred[dist>=np.percentile(dist, 93)] = 1 km_y_pred[dist<np.percentile(dist, 93)] = 0
Python으로 배우는 사기 탐지

모델 결과 검증

  • 사기 분석가와 확인
  • 표시된 사례를 더 자세히 조사하고 기술
  • 과거의 사기 사례와 비교
Python으로 배우는 사기 탐지

Passons à la pratique !

Python으로 배우는 사기 탐지

Preparing Video For Download...