• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 14 pages
Exam (elaborations)

Machine Learning Midterm Exam Graded A+

Document preview thumbnail
Preview 2 out of 14 pages

Machine Learning Midterm Exam Graded A+

Content preview

Machine Learning Midterm Exam Graded A+
Accuracy - ANSWER-number of correctly classified instances divided by total number of
instances

All Pairs - ANSWER-Used for multiclass classification. Trains a Binary Classifier for
every pair of classes. Whichever class "wins" more pairwise classifications will be the
final prediction

All pairs faster to train than OVR. OVR is faster in making predictions - ANSWER--

Averaging precision/recall/f1 - ANSWER-- Macro average: averages the individual
calculated scores of each class. Weights each class equally.
PREmacro = (PRE1 + ...+ PREk)/k

- Micro average: calculates metric by first pooling all instances of each class. Weights
each instance equally.
PREmicro = (TP1+...+TPk)/(TP1+...+ TPk + FP1+...+ FPk)

Benefits of multiple held-out estimates - ANSWER-- more robust final estimate; less
sensitive to particular test split

- multiple estimates also give you variance of the estimates; can be used to construct
confidence intervals

Bias - ANSWER-- When you estimate a parameter from a sample, the estimator is
biased if the expected value of the parameter is different from the true value

- Regularization adds bias because it systematically pushes your estimates in a certain
direction (weights close to 0)

Bias and Variance Error - ANSWER-- Variance is error due to randomness in how your
training data was selected

- Bias is error due to something systematic, not random

- Some amount of bias is needed to avoid overfitting
- too much bias is bad, but too much variance is usually worse

Bias term in perceptron - ANSWER-Add an extra feature to every instance whose value
is always 1

Classification with logistic regression - ANSWER-- typically you classify something as
positive if Φ(z)>=0.5, but you could create other rules. For example, if you dont want to
classify something as positive unless you are really confident, use Φ(z)>=0.99 as your
rule (example:// spam classification)

, Data annotation - ANSWER-Creating the labels for training data

also called coding or labeling

often needs to be an iterative process to finalize guidelines and set of labels

Data Preprocessing - ANSWER-Preprocessing refers to the step of processing your raw
data in a way that makes it suitable for use in a learning algorithm

Main components:
- Getting features out of raw data
- setting values of the features (fixing incorrect values, converting categorical values to
numeric, standardizing/normalizing values)
- selecting which instances to include

Decision Tree Benefits - ANSWER-- Decision trees can learn conjunctions (e.g.,
pattern="striped" AND Color="Orange"). This gives context to the feature values.

- Naturally handle muticlass classification without modification

- Classifier is interpretable

- Can be used for regression (final prediction is the average value of all instances at
leaf)

Decision trees - ANSWER-Decision tree classifiers are structured as trees, where:
- nodes are features
- edges are feature values
- leaves are classes

To classify an instance, start at the root of the tree, and follow the branches based on
the feature values in that instance. The final node is the prediction.

Dimensionality - ANSWER-- Dimensionality: number of features/variables

- Curse of dimensionality:
training: the more features you have, the more data you need to learn
distance: all points are far apart in a high dimensional space. Harder to define close vs
far

Dimensionality reduction - ANSWER-- Dimensionality reduction refers to the process of
reducing the number of features in your data: can be done through feature selection and
feature transformation

- transformed feature vectors are called embeddings

Document information

Uploaded on
December 19, 2024
Number of pages
14
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

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

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.
CLOUNDLite
3.9
(132)
Sold
669
Followers
389
Items
12460
Last sold
2 days ago



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