It analyzes the input and labels the output by proper detection, whether it's fraud or not fraud, according to the test dataset. Since it's a binary classification, logistic regression provided better results than that of the other classifiers.
I used the open-source dataset available on Kaggle. Here is the link to the dataset: https://www.kaggle.com/mlg-ulb/creditcardfraud.
- Download the dataset from kaggle.
- Clone the repository.
- Run the notebook, and you will be able to see the results and visualize the data.
- If you don't want to clone then you just simply run these codes and you can observe the desired result.