Professional Documents
Culture Documents
CSE-3501 Information Security Analysis and Audit ELA (L9+L10) Digital Assignment-5
CSE-3501 Information Security Analysis and Audit ELA (L9+L10) Digital Assignment-5
PSEUDOCODE:
o Firstly, Import packages, functions, and classes
o Thirdly, Create a classification model and train (or fit) it with your existing data
The first step is to perform the feature scaling of the data set, so that if one variable is in
the range from say 10000 to 50000 while other is from say 1 to 20 than they must be
scaled around the same value. Standard scalar library does that. Confusion matrix is a
2X2 matrix with values at [0][1] and [1][0] showing the number of wrong values in the
prediction. You can go through Logistic
Regression class and change several parameters for the classifier.
CODE:
Label encoding
Splitting the data-set into the Training set and Test set
Feature scaling
Training Model on the Training set
While implementing the decision tree we will go through the following two phases:
• Building Phase
• Split the dataset from train and test using Python sklearn package.
• Operational Phase
• Make predictions.
CODE :
Label encoding
Splitting the data-set into Training set and
Testing set
Feature Scaling
OUTPUT:
6 19BCE0691.ipynb
k 19BCE0691.ipynD
, a ‹s8ceo1co.ipynb
6 19BCE0591 ipynb
Comparison of Decision tree and Logistic Regression
Decision Logistic
tree regression
Accuracy (in %) 99.996% 94.008%