Docsity

Machine Learning per l'Ingegneria Biomedica: Reti Neurali Artificiali e Applicazioni, Appunti di Machine learning

Anteprima parziale del testo

Scarica Machine Learning per l'Ingegneria Biomedica: Reti Neurali Artificiali e Applicazioni e più Appunti in PDF di Machine learning solo su Docsity!

Machine Learning for

Biomedical Engineering

Enrico Grisan

[email protected]

From biology to models

Backpropagation

• Loop:

  • Sample a batch of data
  • Backpropagate the loss function to calculate the

analytical gradient

  • Perform parameter updata

ANN Capabilities

Optimal bayesian boundary (known distribution) Linear classifier K-nearest neighbours (K=1) K-nearest neighbours (K=15) ANN (10 units) ANN (10 units, regularization) Training Error: 0. Test Error : 0. Training Error: 0. Test Error : 0. Training Error: 0. Test Error : 0. Training Error: 0. Test Error : 0. Bayes Error: 0. Training Error: 0. Test Error : 0.

ANN Practicalities

1) Preprocess the data!

% X = NxD test cases Sx = cov(X); [E,D]=eig(Sx); R=E’; W=sqrt(inv(D)); Xw=(W(RX’))’;**

ANN practicalities

ANN: Logistic (multinomial) classifier 16x 10 Number of neurons: 10 Number of weights: 16x16x10= Number of parameters: 2560+

ANN: hidden layer

16x 10 Number of neurons: 12+ Number of weights: 256x12+12x10= Number of parameters: 3192+12+10= 12

Receptive fields

Replicate the column of hidden neurons across space, With some stride 7x7 input 3x3 connectivity (receptor field) 1 stride

Receptive fields

Replicate the column of hidden neurons across space, With some stride 7x7 input 3x3 connectivity (receptor field) 1 stride

Receptive fields

Replicate the column of hidden neurons across space, With some stride 7x7 input 3x3 connectivity (receptor field) 1 stride

Receptive fields

Replicate the column of hidden neurons across space, With some stride 7x7 input 3x3 connectivity (receptor field) 1 stride 5x5 output

Receptive fields

Replicate the column of hidden neurons across space, With some stride 7x7 input 3x3 connectivity (receptor field) 2 stride

Receptive fields

Replicate the column of hidden neurons across space, With some stride 7x7 input 3x3 connectivity (receptor field) 2 stride 3x3 output