4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes...

11
CVG-UPM COMPUTER VISION Machine Learning & Neural Networks 4.- Machine Learning General Methodology by Pascual Campoy Grupo de Visión por Computador U.P.M. - DISAM 2 CVG-UPM COMPUTER VISION Machine Learning and Neural Networks P. Campoy P. Campoy P. Campoy Machine Learning General Methodology Objectives Supervised and not supervised learning Learning challenges Building machine learning models Errors and validation

Transcript of 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes...

Page 1: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Machine Learning & Neural Networks

4.- Machine Learning

General Methodology

byPascual Campoy

Grupo de Visión por ComputadorU.P.M. - DISAM

2

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Machine LearningGeneral Methodology

Objectives

Supervised and not supervised learning

Learning challenges

Building machine learning models

Errors and validation

Page 2: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

3

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Learning objectives

?

y

x2

?

x1

x2

Find a model that predicts the right outputfor a new input, given previous outputs

4

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Supervised learning

area

leng

th

Feature space

?

Supervised learining concept Working structure

y1..ym

.

.xn

x1

yd1

ydm

+ -..

Rn ⇒ Rm function generalitation

Page 3: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

5

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Unsupervised learning

Feature space

Unsuprvised learnng concept

?

area

leng

th

Working structure

y1..ym

.

.xn

x1

Clustering

6

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Leaning challenges

lack of learning instances

noise

?x1

x2

x1

x2

??

Page 4: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

7

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Leaning challenges

Aprendizaje basado en la f.d.d. de lasmuestras ⇒ posible incorrelación entre lacantidad de muestras y su importancia en lasalida

p(x) h(x)

8

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Machine LearningGeneral Methodology

Objectives

Supervised and not supervised learning

Learning challenges

Building machine learning models

Errors and validation

Page 5: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

9

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Building machine learning models:levels

Determinación de laestructura interna

(manual/automático)

Elección del modelo(manual)

modeloAjuste de parámetros(automático)

mue

stra

s e

ntre

nam

ient

o

Error deentrenamiento

10

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Parameter calculation

Optimización de un índice

Función de coste :Lj(x) = Σ L(wj/wi) P(wi/x)

Error cuadrático medioE = ∑ ∑ ( yk

n - ydkn )2

n k

Compromiso:grado de optimización frente a tiempo de cálculo

Page 6: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

11

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Building machine learning models:model structure

Determinación de laestructura interna

(manual/automático)

Elección del modelo(manual)

modeloAjuste de parámetros(automático)

mue

stra

s de

te

st

error de test

12

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Model structure evaluation

Universo deentradas Conjunto de test

o de validación

Validación cruzada:realizar modelos entrenados con V muestras y validadoscon conjuntos de test de N-V muestras

!

N

V

"

# $ %

& '

Conjunto deentrenamiento

modelo

Page 7: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

13

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Building machine learning models:model types

Determinación de laestructura interna

(manual/automático)

Elección del modelo(manual)

MODELOAjuste de parámetros(automático)

error de validación

14

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Model selection

Matemáticos:- polinomios, splines, B-splines, ...

Estadísticos:- ARX, ARMAX, Markov, Box-Jenkins, ...

Redes Neuronales:- MLP, RBF, SOM, ART, ...

Page 8: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

15

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Machine LearningGeneral Methodology

Objectives

Supervised and not supervised learning

Learning challenges

Building machine learning models

Errors and validation

16

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Numero de muestras de la red neuronal

error

Error de test

Error bayesiano

Error de entrenamiento

Error de entrenamiento yerror de test o de validación

Influencia nº muestras

Page 9: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

17

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Influencia nº g.d.l. del modelo

g.d.l. del modelo

error de test

x1

x2

x1

x2

Infra-aprendizaje

18

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Influencia nº g.d.l. del modelo

x1

x2

x1

x2

g.d.l. del modelo

error de test

Sobre-aprendizaje

Page 10: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

19

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Influencia nº g.d.l. del modelo

x1

x2

x2

g.d.l. del modelo

error de test

Aprendizajex1

CVG-UPM

CO

MP

UT

ER

VIS

ION

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy

Page 11: 4 Machine learning - UPMocw.upm.es/.../mod_label/intro/4_machine_learning-ppt.pdfRedes Neuronales:-MLP, RBF, SOM, ART, ... 15 CVG-UPM COMPUTER VISION P. Campoy Machine Learning and

CVG-UPMC

OM

PU

TE

R V

ISIO

N

Machine Learning and Neural NetworksP. CampoyP. CampoyP. Campoy