Skip to main content

AI phát hiện gian lận kế toán

Project description

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  

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fraud-detection-0.2.tar.gz (167.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fraud_detection-0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file fraud-detection-0.2.tar.gz.

File metadata

  • Download URL: fraud-detection-0.2.tar.gz
  • Upload date:
  • Size: 167.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for fraud-detection-0.2.tar.gz
Algorithm Hash digest
SHA256 bb7fb2bb9d0d6d8c15e1900b492009c0df805e9ee115fd3e0dca33990e5ebcc5
MD5 64dd29fab0355cf6f37094cf901c5f43
BLAKE2b-256 0c0465c18062dfef11c601d251ce23e34812db03ff50b8a092fd1171696b249b

See more details on using hashes here.

File details

Details for the file fraud_detection-0.2-py3-none-any.whl.

File metadata

  • Download URL: fraud_detection-0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for fraud_detection-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ea668ba449a8f5b77b052fd7fca481ab0aee230fb18a3b147b1a6b961a1b27a
MD5 599c618298079314a140aa5d368216db
BLAKE2b-256 a187c1fd1d91e0e6736a254bc088de098286c3f8126df836f97ed3b541e8f7fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page