quizz1 Flashcards

1
Q

what is machine learning?

A
  1. design and analysis of algorthms
    2.that enables computers to learn
  2. without programming
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

input, output of ml algorithm supervised

A
  1. input> input data
  2. output predcition
    3.in the ML algortihm they train (algortihm, train data)
    4.the prediction later is evaluated and move to training
  3. then deploy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

taxonomy of machine learning

A
  1. supervised learning (labeled data): regression, classification
    2.unsupervised learning (unlabeled data): dimensionality reduction and clustering
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

artificial intelligence

A

deep learning
neural nets
machine learning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

supervised learning

A
  1. inferr a function
  2. from labeled training data
  3. develop predictive model based on input anad output data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

machine learning pipeline

A
  1. define task (separate dogs and cats)
    2.colllect data:train and test (80/20)
    3.design features (nose, number of legs)
    4.train model
    5.test models
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

regression vs classification quizz

A
  1. who is covid 19 positive and who is not—> classification
  2. how many customers will buy product —> regression
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

unsupervised learning

A
  1. no direct learning signal
  2. find structure in data
  3. example> mickey mouse, donalds duck and bad bunny bunny
    4.thik of clusters/groups
  4. internal representation from input data only (no output data)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

unsupervised learning vs supervised quizz

A
  1. email spam/non spam: supervised-classification
    2.given a set of internet pages and group them into categories—unsupervised/clusters
    3.givena database of patient data, divide into subtypes and group them—unsupervised/clusters
    4.classify into covid 19 or not—-supervised/classification
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

unit vectors

A
  1. v/||v||=(x1/||v|| , x2/||v||)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

orientation unit vectors

A

tita=arctg(x2/x1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

magnitude of vectors

A

if v=(x1,x2) then ||v||=sqrt(x1 al 2+ x2 al 2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

regression

A
  1. when output you are trying to predict is a continuous-valued number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

classification

A
  1. when output you are trying to predicr is a categorical quantity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

the framework of regression

A
  1. the hypothesis maps x(size house) and y (price house)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

hypothesis

A
  1. tita 0+tita 1 x
  2. find both tita so that y=hipothesis
17
Q

cost function

A
  1. sum: predicted value hypothesis-y true value al cuadrado
18
Q

linear regression cost function

A
  1. 1/2m sum:(h-y)al 2 , con m=number of dtaa samples
19
Q

strategy 1 of regression

A
  1. give J start eith tita1, 0
  2. iteraitve process, update tittas until reduces J
20
Q

gradient descent algorithm

A
  1. titta 1 (k+1)=tita 1(k)- alfa derivada parcial J con repsecto tita 1
  2. tita 1=current guess tita 1
  3. alfa= how fast to descend, learning rate
  4. derivate:in which direction
21
Q

what happens when alfa is too large?

A
  1. divergence may happen
  2. it might never converge
22
Q

alfa-linear regression

A
  1. its a fixed value
23
Q

gradient descend- tita 1, 2

A
  1. update both of them simultaneously
  2. if you do sequentially its called coordinate descent
24
Q

linear regression vs gradient descent

A
  1. linear regression: j and hypothesis
  2. gradient: tita1, 0 ; alfa adn dreivate j
25
Q

gradient descent in linear regression

A
  1. guaranteees that the local minmun is the global minmum
  2. it uses a convex fucntion
26
Q

normalization for multiple features

A
  1. note that each feature is on a different scale
  2. x-xmin/(xmax-xmin)—used in pixels and can have outliers. SE HACE POR COLUMNAS NO FILAS
  3. x-media/desvio—more robust to outliers
27
Q

improving gradient escent: learning rate

A
  1. j must be reducing
  2. if tita stops changing mcuh you can termiante graident
  3. if j is increasinf, reduce alfa
    4.
28
Q

alfa too large and small

A
  1. too large may not converge, j goes upward
  2. too small goes slow convergence