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
Exam (elaborations)

CSE 470 MIDTERMS 1 AND 2 EXAM QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
18
Grade
A+
Uploaded on
22-02-2025
Written in
2024/2025

CSE 470 MIDTERMS 1 AND 2 EXAM QUESTIONS AND ANSWERS...

Institution
CSE 470
Course
CSE 470

Content preview

Decision Tree Structure
Nodes = Categories
Branches = Options (split in exactly 2)
Leafs = specific examples from training set

*continuous (such as income) requires choosing a splitting point (such as 80k)
Low Impurity
Skew-data (more useful)
High Impurity
Roughly evenly split data (less useful)
Measure of Node Impurity: Gini Index




Measure of Node Impurity: Entropy




Measure of Node Impurity: Misclassification error

,Comparison among Impurity Measures




Best Attribute for Splitting (based on impurity change)
Before split - weighted sums of after split (Weight = |Dj| / |D|

Dj = j-th partition after split

*Gini improves but error stays the same
Count Matrix
Split Positions are based on 80k example from first slide
Move left to right within the row designated by the impact of the shift looking
at the top
Gain Ratio
Info Gain / Split Info




Decision Tree Pros/Cons
Pros:
- Inexpensive to construct
- Fast
- Can handle independent redundant attributes

Cons:
- Prefers more discriminating
- Only output 0 or 1
Bayes Theorem

, Bayes Classifier
P(Xd | yes) • P(yes) > or < P(Xd | no) • P(no)
Used to estimate probabilities for continuous attributes (without discretization)
Probability Density Estimation
How to handle 0s in Bayes
Coin Flip
Laplace Estimate
Confusion Matrix




Confusion Matrix: Accuracy
(TP+TN)/All
Confusion Matrix: Error
(FP+FN)/All
Confusion Matrix: Precision (= Sensitivity)
TP / TP+FP

*Precision ∝ 1/Recall
Confusion Matrix: Recall
TP / TP+FN
Confusion Matrix: Specificity
TN/TN+FP

Written for

Institution
CSE 470
Course
CSE 470

Document information

Uploaded on
February 22, 2025
Number of pages
18
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$13.99
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
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Mirror Liberty University
Follow You need to be logged in order to follow users or courses
Sold
425
Member since
3 year
Number of followers
137
Documents
4987
Last sold
1 week ago

3.8

59 reviews

5
23
4
18
3
9
2
4
1
5

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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions