Lec 11: Machine learning big picture

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

encourage image

There are no tags or description

Looks like no tags are added yet.

16 Terms

1
New cards

machine learning

improving performance on a task over time through experience(data)

2
New cards

Training data vs. testing data

training data → learning alg adjusts model parameters → trained model

testing data →trained model →prediction/decision

3
New cards

Supervised vs. unsupervised learning?

Supervised: learns from labeled data

unsupervised: discovers patterns without labels

4
New cards

Supervised: classification vs. regression

classification predicts discrete categories

regression predicts continous numerical values

5
New cards

features: why combine multiple features

features are input attributes. combining informative features can improve class separation

ex. with salmon and bass

combine features using weighted sum where z=wixi

where xi is the feature value, wi is feature weight, and t=classificaiton threshold wixi>t

this creates a linear decision boundary


6
New cards

Objective function in ML

J(D, theta) measurs model performance and guides the search for better parameters, error metric using labeled data because we need to know whether the predictions are correct

7
New cards

accuracy is misleading

A model can predict the majority class and achieve high accuracy without learning meaningful patterns.

8
New cards

model parameters theta

with more featurse, the decision boundary becomes a plane or hyperplane. the goal is for the boundary to work well on data outside the training set. adjustable values learned during training that determine the model’s behavior or decision boundary.


  • sometimes no straight line can separate the 2 classes: the choice of model must be appropriate for the domain and data.


9
New cards

key assumption of ML

training and test data are drawn from the same or similar distributions

10
New cards

underfitting vs. overfitting

underfitting misses patterns

overfitting memorizes training examples instead of generalizing

11
New cards

basic ml algorithm framework

similar to searching through a state space


12
New cards

how to calculate the size of the instance space

multiply the number of values of each feature. for n boolean feature, there are 2^n instances

ex:


13
New cards

Instance vs. concept vs. hypthesis and their space sizes

Instance = feature assignment; 2^n

concept = subset of instances; 2^(2^n)

hypothesis = subset of concepts.2^(2^(2^n))

14
New cards

Inductive bias

prior assumptions that constrain the search space, making learning tractable and supporting generalization

15
New cards

Accuracy, precision, recall

inherent trade off between precision and recall: making a classifier more conservative about predicting positives can improve precision but reduce recall and vice versa

  • a metric to combine them is the F1 harmonic mean:



16
New cards

training, dev, and test sets?

train larns parameters, dev tunes the model, test evaluates final generalization for appropriate inductive bias to prevent overfitting because we want to build a model that performs well on previously unseen inputs