Documente Academic
Documente Profesional
Documente Cultură
Florin Leon
http://florinleon.byethost24.com/curs_ml.htm
Florin Leon, Invatare automata, http://florinleon.byethost24.com/curs_ml.htm
Modele bazate pe energie
1. Modelul Ising
2. Rețele Hopfield
3. Mașini Boltzmann
4. Mașini Boltzmann restricționate
5. Rețele de convingeri profunde
http://netlogoweb.org/launch#http://netlogoweb.org/assets/modelslib/Sample%20Models/Chemistry%20&%20Physics/Ising.nlogo
yn nu este
conectată la xn
n=4
w = np.zeros((n * n, n * n))
print('w = \n{}'.format(w.astype(int)))
x = np.zeros((n * n,))
for i in range(n * n):
if random() < 0.5:
x[i] = 1
print('\nx = \n{}'.format(x.reshape((n,n)).astype(int)))
y = np.zeros((n * n,))
print('\ny = \n{}'.format(y.reshape((n,n)).astype(int)))
w=
[[ 0 -2 -2 -2 -2 0 0 0 -2 0 0 0 -2 0 0 0]
[-2 0 -2 -2 0 -2 0 0 0 -2 0 0 0 -2 0 0]
[-2 -2 0 -2 0 0 -2 0 0 0 -2 0 0 0 -2 0] x=
[-2 -2 -2 0 0 0 0 -2 0 0 0 -2 0 0 0 -2] [[1 1 0 0]
[-2 0 0 0 0 -2 -2 -2 -2 0 0 0 -2 0 0 0] [0 1 0 0]
[ 0 -2 0 0 -2 0 -2 -2 0 -2 0 0 0 -2 0 0] [1 1 1 0]
[ 0 0 -2 0 -2 -2 0 -2 0 0 -2 0 0 0 -2 0] [1 0 1 0]]
[ 0 0 0 -2 -2 -2 -2 0 0 0 0 -2 0 0 0 -2]
[-2 0 0 0 -2 0 0 0 0 -2 -2 -2 -2 0 0 0] y=
[ 0 -2 0 0 0 -2 0 0 -2 0 -2 -2 0 -2 0 0] [[0 0 0 1]
[ 0 0 -2 0 0 0 -2 0 -2 -2 0 -2 0 0 -2 0] [1 0 0 0]
[ 0 0 0 -2 0 0 0 -2 -2 -2 -2 0 0 0 0 -2] [0 1 0 0]
[-2 0 0 0 -2 0 0 0 -2 0 0 0 0 -2 -2 -2] [0 0 1 0]]
[ 0 -2 0 0 0 -2 0 0 0 -2 0 0 -2 0 -2 -2]
[ 0 0 -2 0 0 0 -2 0 0 0 -2 0 -2 -2 0 -2]
[ 0 0 0 -2 0 0 0 -2 0 0 0 -2 -2 -2 -2 0]]
Faza negativă
i i Propagarea ascuns → vizibil
Reconstrucția datelor
t=0 t=1 (~ rețeaua visează)
j j
i i
t=0 t=1
supervizată
…
algoritmul backpropagation
…
http://www.cs.toronto.edu/~hinton/adi/index.htm
Florin Leon, Invatare automata, http://florinleon.byethost24.com/curs_ml.htm 68
Exemplu: MNIST
Rate de eroare pe mulțimea de test
Deep Belief Network: 1.25%
Support Vector Machine: 1.4%
Perceptron multistrat antrenat cu backpropagation,
cu 1000 neuroni într-un strat ascuns: ~1.6%
Perceptron multistrat antrenat cu backpropagation,
cu 500, respectiv 300 de neuroni în două straturi
ascunse: ~1.6%
k-Nearest Neighbor: 3.3%