Cours Intro IA ReseauxNeuronnes
Cours Intro IA ReseauxNeuronnes
Episode : S01E01
1.1 Introduction
Context, tools and ressources
1
1.2 From the linear regression
to the first neuron
History,
Fundamental
Concepts
1.3 Neurons in controversy
15
90
[ Méthode scientifique ]
16
1
Jim Gray, 2007 [GRAY] 90
[ *-learning ]
Artificial
Intelligence (AI)
17
90
[ *-learning ]
Artificial
Intelligence (AI) Machine
Learning (ML)
18
90
[ *-learning ]
Deep
Learning (DL)
Based on artificial neural
networks
Artificial
Intelligence (AI) Machine
Learning (ML)
19
90
[ *-learning ]
YOU
ARE
HERE
Deep
Learning (DL)
Based on artificial neural
networks
Artificial
Intelligence (AI) Machine
Learning (ML)
20
90
[ *-learning ]
21
90
Supervised learning
Learning
from examples
22
90
Supervised learning Learning from examples
Classification8:
Predict qualitative informations
This is a cat
Tell me,
what is it ?
This is a rabbit
23
90
Supervised learning Learning from examples
Classification8:
Predict qualitative informations
This is a cat
Tell me,
what is it ?
This is a rabbit
Régression :
Predict quantitative informations
150 KL 400 KL
Tell me,
what's the
price ?
120 KL 100 KL
24
90
Unsupervised learning
Learning
from data
alone
25
90
Unsupervised learning Learning from data alone
Clustering :
Finding Common Relationships
What is the
relationship
between
these data ?
26
90
Unsupervised learning Learning from data alone
Clustering :
Finding Common Relationships
What is the
relationship
between
these data ?
Reduction :
Reduce the number of dimensions
Simplify
while
keeping
meaning
27
90
[ *-learning ]
28
90
A strong competition
AI Publications (% of All Publi-
cations) 30000
AI Papers By Region
3,00 %
25000
2,50 %
China
20000
2,00 % Europe
15000
1,50 % United States
1,00 % 10000
0,50 % 5000
0,00 % 0
9 8 00 0 2 0 4 0 6 0 8 1 0 1 2 14 1 6 1 8
19 0 20 20 20 20 20 20 0 20 20
98
00
02
04
06
08
18
10
12
14
16
2 2
19
20
20
20
20
20
20
20
20
20
20
DL Papers per million people FWCI impact by region
40 3,5
35 3
30
2,5
25
20 2
15 1,5
10
1
5
0 0,5
0
Switz ore
e
erland
d
Germ n
Spain
Japan
Iran
alia
ia
China
India
UK
USA
Israel
cco
Brazil
CZE
m
a
any
ark
Italy
y
s
rland
Canad
Franc
Greec
Turke
Russi
e
Polan
Austr
Belgiu
Swed
Denm
p
8 0 2 4 6 8 0 2 4 6 8
Moro
Aus tr
9 0 0 0 0 0 1 1 1 1 1
Singa
9 0 0 0 0 0 20 0 0 0 0
Nethe
1 2 2 2 2 2 2 2 2 2
29
Source : AI Index [AIDEX] FWCI : Field-Weighted Citation Impact 90
A Python centered world
42
90
Linear regression
43
90
Linear regression
44
90
Linear regression
45
90
Linear regression
Good news !
We have a direct solution !
Bad news...
Complexity in n3
46
90
Gradient descent
⌅1
Loss
We will iteratively look for the
loss(⌅) best position of our line, by
⌅1 ⌅
varying its parameters (W).
⌅2
⌅1 But how can we eXciently
Loss
vary our parameters (W)?
loss(⌅)
⌅2 ⌅
⌅3
⌅2 Note : Loss functions could be :
⌅1
Loss
loss(⌅)
47
⌅3 ⌅ 90
Gradient descent
By changing W from YW
We improve loss(W) of Yloss
The gradient is the slope we will follow
to minimize our loss function.
↵ loss
Iterations
↵⌅
Loss
loss(⌅)
This process is called gradient descent and
the function used to optimize the descent,
optimization function
Best ⌅ ⌅
48
90
Gradient descent
49
Notebook [GRAD1] 90
Polynomial regression
51
Polynomial regression
Underfiting Overfiting
Logistic regression
A logistic regression is intended to provide a probability of belonging to a class.
Dataset : X Observations
y Classe
53
Logistic regression
A logistic regression is intended to provide a probability of belonging to a class.
Dataset : X Observations Objective : Predict the class
y Classe x given, we want to predict y
ypred = f(x)
where f is a linear function
?
- Introduction au Langage Python pour l’IA -
Démonstrations en interactif
Logistic regression
55
90
Logistic regression
Determined by the minimisation
of a cost function J(W)
56
90
Logistic regression
x1
w1 b
x2 w2
bia
w3
x3
wm
xm
62
90
[ intelligence ]
« Capacité de percevoir ou d'inférer
l'information, et de la conserver comme une
connaissance à appliquer à des
comportements adaptatifs dans un
environnement ou un contexte donné »
63
*
Wikipedia - Illustration : [POTATO] 90
a [ intelligence ]
4
« Ensemble des fonctions mentales ayant
pour objet la connaissance conceptuelle et
rationnelle »*
64
*
[Link] 90
ro ig
rsy
nt e b
ve
Co Th
Connectionnism vs Symbolic
Modelling the brain Making a mind
Modéliser le cerveau Forger une opinion
65
1
D Cardon, JP Cointet, A Mazieres, 2018 [LRDN] 90
66
Illustration : [NEURON] 90
67
90
Determined by the minimisation
of a cost function
68
90
ro ig
rsy
nt e b
ve
Co Th
Connectionnism vs Symbolic
Modelling the brain Making a mind
Modéliser le cerveau Forger une opinion
69
1
D Cardon, JP Cointet, A Mazieres, 2018 [LRDN] 90
ro ig
rsy
nt e b
ve
Co Th
Connectionnism vs Symbolic
70
90
ro ig
rsy
nt e b
ve
Co Th
65 522 publications
106 278 publications
71
1
D Cardon, JP Cointet, A Mazieres, 2018 [LRDN] 90
Perceptron
Perceptron
Frank Rosenblatt
1958
73
F. Rosenblatt, 1958 [FROS] 90
Perceptron
74
Notebook [PER57] 90
- Regression logistic en Python -
Démonstration
Deep Neural Networks
77
90
Deep Neural Networks
No activation
function
X(i)
y(i)
Train set
X(i) : Observations
y(i) : Expected output
(Normalized)
79
90
Deep Neural Networks
To define :
Optimization
Activation
Back-propagation Loss
Metrics
Learning process ... 80
90
Training process - general
81
90
Training process - general
(batch)
82
90
Training process - general
(batch)
83
90
Deep Neural Networks
1958
84
Roadmap
Episode : S01E01
1.1 Introduction
Context, tools and ressources
1
1.2 From the linear regression
to the first neuron
History,
Fundamental
Concepts
1.3 Neurons in controversy
No activation
function
X(i)
y(i)
Train set
X(i) : Observations
y(i) : Expected output
(Normalized)
93
90
- Régression à l’aide d’un Réseaux de neurones (RNN) en Python -
Démonstration
Regression with a Dense
Network (DNN)
Notebook : [BHP1]
Objective :
Predicts housing prices from a set of house features.
Dataset8:
Boston House Pricing Dataset (BHPD)
96
90
Step 1 - Import and init Step 4 - Build a model
n epoch
97
90
Classification with a DNN
(Normalized)
99
90
- Classi cation à l’aide d’un réseau de neurones (RNN) en
python- Démonstration
fi
Simple classification with DNN
Notebook : [MNIST1]
Objective :
Recognizing handwritten numbers
Dataset8:
Modified National Institute of Standards and
Technology (MNIST)
100
90