Credit Card Fraud Detection With Machine Learning in Python
Using XGBoost, Random forest, KNN, Logistic regression, SVM, and Decision tree to solve classification problems
Case
Assume that you are employed to help a credit card company to detect potential fraud cases so that the customers are ensured that they won’t be charged for the items they did not purchase. You are given a dataset containing the transactions between people, the information that they are fraud or not, and you are asked to differentiate between them. This is the case we are going to deal with. Our ultimate intent is to tackle this situation by building classification models to classify and distinguish fraud transactions.
Why Classification? Classification is the process of predicting discrete variables (binary, Yes/no, etc.). Given the case, it will be more optimistic to deploy a classification model rather than any others.
Steps Involved
- Importing the required packages into our python environment.
- Importing the data
- Processing the data to our needs and Exploratory Data Analysis
- Feature Selection and Data Split
- Building six types of…