फ्रॉड बनाम नॉन-फ्रॉड असाइन करना

Python में Fraud Detection

Charlotte Werger

Data Scientist

क्लस्टर्ड डेटा से शुरुआत

Python में Fraud Detection

क्लस्टर सेंट्रोइड असाइन करें

Python में Fraud Detection

क्लस्टर सेंट्रोइड से दूरी परिभाषित करें

Python में Fraud Detection

जो सेंट्रोइड से सबसे दूर हैं उन्हें फ्रॉड के रूप में फ़्लैग करें

Python में Fraud Detection

सेंट्रोइड से दूरी के आधार पर फ्रॉड फ़्लैग करना

# 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 में Fraud Detection

अपने मॉडल के परिणाम वैलिडेट करें

  • फ्रॉड विश्लेषक से जाँच करें
  • जो केस फ़्लैग हुए हैं उन्हें और गहराई से जाँचें और वर्णन करें
  • पिछले ज्ञात फ्रॉड केसों से तुलना करें
Python में Fraud Detection

अभ्यास करते हैं!

Python में Fraud Detection

Preparing Video For Download...