Follow these steps to set up and run the Credit Card Fraud Detection project on your computer.
Make sure Python 3.10 or higher is installed on your system. You can verify this by running the command below.
python --version
Extract the downloaded project ZIP file and open the project folder in your terminal or command prompt.
cd credit-card-fraud-detection
Create an isolated Python environment so the project dependencies stay separate from your system.
python -m venv venv
On Windows, run the following command.
venv\Scripts\activate
On Linux or macOS, run this instead.
source venv/bin/activate
Install all the required libraries listed in the requirements file.
pip install -r requirements.txt
Download the credit card transaction dataset (creditcard.csv) and place it inside the data folder of the project.
Run the training script. This will preprocess the data, balance the classes, train the models, and save the best one.
python train_model.py
Start the Flask server with the command below.
python app.py
Open your web browser and go to the address shown in the terminal to use the application.
http://127.0.0.1:5000
The application is now running. You can try single transaction prediction, upload a CSV file for batch prediction, and explore the analytics dashboard.
Our team is here to assist you with installation and setup.