This repository contains the final group project for DSE 511 for Team Lancaster Barnstormers.
Deeper dive into the data from the individual projects by performing some statistics and machine learning to try and extract more patterns from the data.
import prepare_data
X_origin, y_origin, X_over, y_over = prepare_data.get_data('path/to/your/database/')
X contains features and y is the target variable (1: good loan, 0: bad loan)
Running SVM classifier
import svm
clf0, X_test0, y_test0, clf1, X_test1, y_test1 = svm.run_svm(X_origin, y_origin, X_over, y_over)
python3 knn.py
- Running kNN classifier with a different value of k:
```python
import knn
clf0, X_test0, y_test0, clf1, X_test1, y_test1 = knn.run_knn(X_origin, y_origin, X_over, y_over, 1)
import RF
clf0, X_test0, y_test0, clf1, X_test1, y_test1 = RF.run_randomforest(X_origin, y_origin, X_over, y_over)
python excecution.py