rajvivan's picture
Complete fraud detection system: code, figures, models, paper
408a9b2 verified
raw
history blame contribute delete
756 Bytes
"""Configuration for the Fraud Detection System."""
import os
# Paths
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
FIGURES_DIR = os.path.join(BASE_DIR, "figures")
MODELS_DIR = os.path.join(BASE_DIR, "models")
DATA_DIR = os.path.join(BASE_DIR, "data")
os.makedirs(FIGURES_DIR, exist_ok=True)
os.makedirs(MODELS_DIR, exist_ok=True)
os.makedirs(DATA_DIR, exist_ok=True)
# Dataset
DATASET_ID = "David-Egea/Creditcard-fraud-detection"
# Random seed
SEED = 42
# Split ratios
TRAIN_RATIO = 0.70
VAL_RATIO = 0.15
TEST_RATIO = 0.15
# Figure settings
FIG_DPI = 300
FIG_BG = "white"
# Average transaction loss assumption for business impact
AVG_FRAUD_AMOUNT = 122.21 # Will be updated from data
# HF Repo
HF_REPO = "rajvivan/fraud-detection-system"