-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMain.py
More file actions
28 lines (22 loc) · 746 Bytes
/
Main.py
File metadata and controls
28 lines (22 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# importing necessary libraries
import Pandas as pd
from Data import split_data
from Model import logisticregressor,xgbclassifier,multilayerperceptron,RFClassifier,ROC_curve
data=pd.read_csv('bank_data.csv',sep=';')
X_train,y_train,X_test,y_test=split_data(data)
#First model
logisticregressor(X_train,y_train,X_test,y_test)
# ROC curve for the model
ROC_curve(X_test,y_test,model_logregressor)
#Second model
xgbclassifier(X_train,y_train,X_test,y_test)
#RoC curve for the model
ROC_curve(X_test,y_test,model)
#Third model
multilayerperceptron(X_train,y_train,X_test,y_test)
#RoC curve for the model
ROC_curve(X_test,y_test,mlp)
#Fourth model
RFClassifier(X_train,y_train,X_test,y_test)
#RoC curve for the model
ROC_curve(X_test,y_test,clf)