https://github.com/codequeenie/fraud_detection_model
A project for detecting fraudulent transactions using a logistic regression model.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.1%) to scientific vocabulary
Repository
A project for detecting fraudulent transactions using a logistic regression model.
Basic Info
- Host: GitHub
- Owner: CodeQueenie
- Language: Jupyter Notebook
- Default Branch: main
- Size: 3.91 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Fraud Detection Model
This project trains a machine learning model to detect fraudulent transactions using a logistic regression algorithm.
Dataset
The dataset used in this project is the Credit Card Fraud Detection dataset.
Instructions to Get the Dataset
- Download the dataset from Kaggle.
- Extract the files
fraudTrain.csvandfraudTest.csv. - Place the files in the
data/folder of the project directory:
Requirements
- Python 3.9
- Libraries: pandas, scikit-learn, joblib
Instructions
- Place the dataset files (
fraudTrain.csvandfraudTest.csv) in thedata/folder. - Navigate to the
srcfolder: ```bash cd src - Run the training script: ```bash python train_model.py
Output
- The trained model is saved in the outputs/ folder as fraud_model.pkl.
Usage
- To train the model, run the following command: ```bash python train_model.py
Expected Output
The script will output the following:
- A confusion matrix and classification report printed in the terminal.
- Example: ```lua Confusion Matrix: [[100 10] [ 5 20]]
Classification Report: precision recall f1-score support 0 0.95 0.90 0.92 110 1 0.67 0.80 0.73 25
Owner
- Name: Nicole LeGuern
- Login: CodeQueenie
- Kind: user
- Repositories: 1
- Profile: https://github.com/CodeQueenie
👋 Seeking entry-level position or apprenticeship in software engineering. Eager to dive headfirst into the field and apply my skills in a professional setting.
GitHub Events
Total
- Push event: 1
- Create event: 2
Last Year
- Push event: 1
- Create event: 2