Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

IS424 Lab 2-Classification

Rating
-
Sold
-
Pages
4
Uploaded on
08-08-2021
Written in
2020/2021

classification lab

Institution
Module

Content preview

Lab 2- Classification
1. After importing the data, assign appropriate role and level to each of the attributes. What
was the role/level of all attributes that you have assigned (a screen shot is enough)?

2. Partition the data into: 50% Train, 0% Validation and 50% Test data. Create 5 Decision
Trees on this partitioned data. Set Maximum Branch (a), Maximum Depth (b) and Leaf Size (c)
to (a, b, c) respectively for the 5 trees as follows: (2, 2, 50); (3, 3, 10); (4, 5, 5); (10, 6, 2); and




(10, 10, 1). Set the assessment measure for all to Misclassification rate. Compare the
performance of these models (based on misclassification rate on train data and test data),
and explain why such a result (the ranking (order) of model performance) was obtained. In
addition show the process flow diagram. (Hint: Consider model complexity).

Misclassification Rate (rounded to 3 decimal places)
Decision tree Train Test
1 0.169 0.173
2 0.154 0.154
3 0.138 0.140
4 0.133 0.141
5 0.133 0.142

➢ Misclassification rate of decision trees ranked from lowest to highest on train data: 5 < 4 < 3 < 2 < 1
➢ Misclassification rate of decision trees ranked from lowest to highest on test data: 3 < 4 < 5 < 2 < 1

Decision trees 1 and 2 appear to underfit the data, while decision trees 4 and 5 appear to overfit the
data. As the models becomes more complex, the models become overfitted. Thus, the decision trees
with higher maximum branch and higher maximum depth seem to do better and have lower
misclassification rates for the train data. However, for the test data, Decision tree 3 appears to
perform the best and has the lowest misclassification error rate among the other models because it
is more balanced and robust.




1

Written for

Institution
Module

Document information

Uploaded on
August 8, 2021
Number of pages
4
Written in
2020/2021
Type
OTHER
Person
Unknown

Subjects

£4.64
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
nemooutis
1.0
(1)

Get to know the seller

Seller avatar
nemooutis Singapore Management University
Follow You need to be logged in order to follow users or courses
Sold
4
Member since
4 year
Number of followers
3
Documents
40
Last sold
2 year ago

1.0

1 reviews

5
0
4
0
3
0
2
0
1
1

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions