ML Chapter 1 Introduction

Questions about the lecture 'Machine Learning' of the RWTH Aachen Chapter 1 Introduction

Questions about the lecture 'Machine Learning' of the RWTH Aachen Chapter 1 Introduction


R. B.
This flashcard set introduces university-level concepts in machine learning and probability theory, focusing on classification, decision theory, and probabilistic formalizations. It covers key characteristics of discriminative and generative models, decision-making strategies, and the formalization of probability distributions, expectations, and variances. Ideal for computer science students, this flashcard set helps understand the foundational principles and tools needed for building intelligent systems and making data-driven decisions.
Cartes-fiches
38
Utilisateurs
2
Langue
Anglais
Catégorie
Informatique
Niveau
Université
Créé / Mis à jour
05.02.2017 / 20.09.2019

Cartes-fiches

What is a characteristic?

[ml]

We talk about statistical ml

What is the description?

[ml]

“Principles, methods and algorithms for learning and prediction on the basis of past evidence”

List them!

[application.ml, 9]

1. Speech recognition // Siri

2. Machine translation // Google Translate

3. Computer vision // Face detection

4. Text filtering // Email spam filters

5. Operation systems // Caching

6. Fraud detection // Credit cards

7. Game playing // Alpha Go

8. Robotics // Everywhere

9. Deep learning

What is the definition?

[goal.ml]

“Machines that learn to perform a task from experience”

What are the characteristics?

[goal.ml, 4]

1. Crucial component for intelligent/autonomous system

2. Important for a system’s adaptability

3. Important for a system’s generalization capabilities

4. Attempt to understand human learning

What are the characteristics?

[learning.goal.ml, 3]

1. No explicit knowledge encoded by ourselves

2. Learn relevant criteria automatically from past observations and adapt to given situations

3. Most often indicates optimization as search in hypothesis space for best model parameter w

List them!

[tools.learning.goal.ml, 5]

1. Statistics

2. Probability theory

3. Decision theory

4. Information theory

5. Optimization theory

What are the characteristics?

[task.goal.ml, 1+2]

1. Described by function y=f(x,w) with parameters w

 

2. Regression with continuous y

3. Classification with discrete y

What are the characteristics?

[performance.goal.ml, 2]

1. Typically one number in %

2. Generalization with training vs test or “All” data

What are the characteristics?

[experience.goal.ml, 4]

1. Supervised learning // Target labels

2. Unsupervised learning

3. Semi-supervised learning

4. Reinforcement learning // Games indicate the winner at the end

List them!

[problems.goal.ml, 4]

1. Invariance to irrelevant input variations

2. Selecting the “right” features is crucial

3. Encoding and use of “domain knowledge”

4. Higher-dimensional features are more discriminative but complexity increases exponentially // Curse of dimensionality

What is the quote?

[PT]

“Probability theory is nothing but common sens reduced to calculation.” Pierre-Simon de Laplace

List them!

[formalization.PT, 9]

1. Random variables X for possibilities xi // Boxes r,b and fruits a,o

2. N-many trials give nij = #{X=xi \land Y=yj} and ci = #{X=xi}

3. Probabilities

4. Rules

5. pdf

6. cdf

7. Expectation

8. Variance

9. Covariance

What is the definition?

[probabilities.formalization.PT, 3]

1. Joint p(X=xi, Y=yj) = nij/N

2. Marginal p(X=xi) = ci/N

3. Conditional p(X=xi|Y=yj) = nij/ci

What is the definition?

[rules.formalization.PT, 3]

1. Sum p(X=xi) = Sumj=1L p(X=xi, Y=yj) // With ci = Sumj=1L nij

2. Product p(X=xi, Y=yj) = p(Y=yj|X=xi)*p(X=xi) // With ci/ci

3. Bayes’Theorem p(Y|X) = p(X|Y)*p(Y)/p(X)

What is the definition?

[pdf.formalization.PT, 2]

1. Function for probabilities over continuous variables

2. p(x in (a,b)) = intab p(x)dx

What is the definition?

[cdf.formalization.PT, 2]

1. Probability that x lies in (-inf,z)

2. P(z) = int-infz p(x)dx

What is the definition?

[expectations.formalization.PT, 1+4]

1. Average value of function f(x) under a pdf p(x)

 

2. E[f]=Sumx p(x)f(x) // Discrete

3. E[f]=int p(x)f(x)dx // Continuous

4. E[f]~1/N Sumn=1Nf(xn) // For finite number N of samples of pdf

5. Ex[f|y]=Sumx p(x|y)f(x) // Conditional

What is the definition?

[variance.formalization.PT, 2]

1. How much variability is in f(x) around the mean value E[f(x)]

2. var[f] = E[ (f(x)-E[f(x)])² ] = E[f(x)²] – E[f(x)]²

What is the definition?

[covariance.formalization.PT, 2]

1. cov[x,y] = Ex,y[{x-E[x]}{y-E[y]}] = Ex,y[xy] – E[x]E[y]

2. Result is a matrix if x,y are vectors

What is the quote?

[BDT]

“The theory of inverse probability is founded upon an error and must be wholly rejected.” by Fisher

What is the characteristic?

[goal.BDT]

Classify new occurrence such that probability of misclassification is minimized

List them?

[probabilities.BDT, 3]

1. A priori

2. Conditional

3. Posterior

What is the definition?

[priori.probabilities.BDT]

p(Ck) with Sumkp(Ck)=1

What is the definition?

[conditional.probabilities.BDT, 3]

1. With feature vector x // Certain property of input

2. Likelihood p(x|Ck) for class Ck

3. Decide for a class based on the feature

What is the definition?

[posterior.probabilities.BDT]

p(Ck|x) = p(x|Ck)p(Ck) / p(x) // Likelihood x Prior / Normalization

What is the definition?

[mistake.BDT, 3]

p(mistake) = p(x in R1, C2) + p(x in R2, C1)

= intR1 p(x,C2)dx + intR2 p(x,C1)dx

= intR1 p(C2|x)p(x)dx + intR2 p(C1|x)p(x)dx

List the strategies! [optimal.BDT, 2]

1. Likelihood-Ratio test

2. Minimize the loss

What is the definition? [likelihoodratiotest.optimal.BDT, 3+1]

1. p(C1|x) > p(C2|x)

2. p(x|C1)p(C1) > p(x|C2)p(C2)

3. p(x|C1)/p(x|C2) > p(C2)/p(C1) = theta // Likelihood-Ratio test

 

4. Compare with all other classes in case of more than two

What is the definition? [minloss.optimal.BDT, 2+1]

1. But loss function depends on unknown true class

2. Work with expected loss

 

3. Adapted decision rule taking loss into account

What is the definition?

[exploss.minloss.optimal.BDT, 2]

1. E[L]=Sumk,jintRj Lkjp(x,Ck)dx

2. E[L]=SumkLkjp(Ck|x) by choosing regions Rj // Easy with posterior class probabilities

What are the characteristics?

[loss.BDT, 2+1]

1. Differentiate between the possible decisions and the possible true classes

2. Cost may be assymmetric // loss(d=healty|patient=sick) >> loss(d=sick|patient=healthy)

 

3. Matrix Lkj = loss for decision Cj if truth is Ck // How much weight to wrong decisions

What are the characteristics?

[rejectoption.BDT, 2]

1. Classification errors arise from regions where largest posterior probability is significantly less than 1

2. Reject the automatic decision entirely and consult a human expert

What are the characteristics?

[discriminantfunctions.BDT, 2]

1. Formulate classification in terms of comparisons

2. Classify x as class Ck if yk(x) > yj(x) fa j!=k

List them for yk(x)!

[discriminantfunctions.BDT, 3]

1. p(Ck|x)

2. p(x|Ck)p(Ck)

3. log p(x|Ck) + log p(Ck)

What are the characteristics?

[generative.DP.BDT, 4]

1. yk(x) oc p(x|Ck)p(Ck)

2. First determine class-conditional densities

3. Separately infer the prior class probabilities

4. Then use Bayes’ theorem to determine class membership

What are the characteristics?

[discriminative.DP.BDT, 3]

1. yk(x) = p(Ck|x)

2. First solve inference problem of determining the posterior class probabilities

3. The use decision theory to assign each new x to its class

What is the characteristic?

[alternative.DP.BDT]

Find yk(x) mapping each input x directly onto a class label

Étudier