Skip to main content

Fraud Detection AI Package

Taá gia: Tran Minh Tam

Mô tả:

Đây là package AI phát hiện gian lận kế toán dựa trên các giao dịch. Sử dụng mô hình RandomForest để dự đoán gian lận từ các giao dịch.

Cài đặt:

Sử dụng lệnh dưới để cài đặt package: pip install accounting-fraud-detector

Cách sử dụng:

  1. Huấn luyện mô hình:
    from fraud_detection.model import train_fraud_model
    train_fraud_model()
    
  2. Du doan gian lan
from fraud_detection.predict import predict_fraud
import pandas as pd

# Đọc file CSV với dấu phân cách là dấu chấm phẩy
df = pd.read_csv("Du_lieu_du_doan_gian_lan_ke_toan.csv", delimiter=";")

# In ra danh sách các cột trong DataFrame để kiểm tra
print(df.columns)


# Dự đoán cho tất cả các giao dịch
result = predict_fraud(df)

# In kết quả hoặc lưu vào file mới
print(result)
result.to_csv("result_predictions.csv", index=False)  # Lưu kết quả dự đoán vào file CSV mới

3. **API**
python fraud_detection\api.py  

Release files for fraud-detection 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fraud-detection 0.2
File Size Uploaded
fraud-detection-0.2.tar.gz 167.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fraud-detection 0.2
File Interpreter ABI Platform
fraud_detection-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 174.0 kB

Release files / fraud-detection-0.2.tar.gz

Download URL fraud-detection-0.2.tar.gz
Size 167.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bb7fb2bb9d0d6d8c15e1900b492009c0df805e9ee115fd3e0dca33990e5ebcc5
BLAKE2b-256 checksum
How to use checksums
0c0465c18062dfef11c601d251ce23e34812db03ff50b8a092fd1171696b249b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.0

Release files / fraud_detection-0.2-py3-none-any.whl

Download URL fraud_detection-0.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ea668ba449a8f5b77b052fd7fca481ab0aee230fb18a3b147b1a6b961a1b27a
BLAKE2b-256 checksum
How to use checksums
a187c1fd1d91e0e6736a254bc088de098286c3f8126df836f97ed3b541e8f7fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page