Goals: Understand the little distribution of the "little" data that was provided to us. Create a 50/50 sub-dataframe ratio of "Fraud" and "Non-Fraud" transactions. (NearMiss Algorithm) Determine the Classifiers we are going to use and decide which one has a higher accuracy. Create a Neural Network and compare the accuracy to our best classifier. Understand common mistaked made with imbalanced datasets. Outline: I. Understanding our data • Gather Sense of our data II. Preprocessing • Scaling and Distributing • Splitting the Data III. Random UnderSampling and Oversampling • Distributing and Correlating • Anomaly Detection • Dimensionality Reduction and Clustering (t-SNE) • Classifiers • A Deeper Look into Logistic Regression • Oversampling with SMOTE IV. Testing • Testing with Logistic Regression • Neural Networks Testing Undersampling vs Oversampling) Correcting Previous Mistakes from Imbalanced Datasets: • Never test on the oversampled or undersampled dataset. • If we want to implement cross validation, remember to oversample or undersample your training data during cross-validation, not before! • Don't use accuracy score as a metric with imbalanced datasets (will be usually high and misleading), instead use f1-score, precision/recall score or confusion matrix Gather Sense of Our Data: The first thing we must do is gather a basic sense of our data. Remember, except for the transaction and amount we dont know what the other columns are (due to privacy reasons). The only thing we know, is that those columns that are unknown have been scaled already.Summary: • The transaction amount is relatively small. The mean of all the mounts made is approximately USD 88 • There are no "Null" values, so we don't have to work on ways to replace values. • Most of the transactions were Non-Fraud 99.83% of the time, while Fraud transactions occurs 017% of the time in the dataframe. Feature Technicalities: PCA Transformation: The description of the data says that all the features went through a PCA transformation Dimensionality Reduction technique) Except for time and amount). Scaling: Keep in mind that in order to implement a PCA transformation features need to be previously scaled. In this case, all the V features have been scaled or at least that is what we are assuming the people that develop the dataset did.)
-
Notifications
You must be signed in to change notification settings - Fork 0
Goals: Understand the little distribution of the "little" data that was provided to us. Create a 50/50 sub-dataframe ratio of "Fraud" and "Non-Fraud" transactions. (NearMiss Algorithm) Determine the Classifiers we are going to use and decide which one has a higher accuracy. Create a Neural Network and compare the accuracy to our best classifier.…
himanshub1007/Credit-Fraud-Detector
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Goals: Understand the little distribution of the "little" data that was provided to us. Create a 50/50 sub-dataframe ratio of "Fraud" and "Non-Fraud" transactions. (NearMiss Algorithm) Determine the Classifiers we are going to use and decide which one has a higher accuracy. Create a Neural Network and compare the accuracy to our best classifier.…
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published