Download OPTIMIZATION OF MODELS: LOOKING FOR THE BEST STRATEGY

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
OPTIMIZATION OF MODELS:
LOOKING FOR THE
BEST STRATEGY
Pavel Kordík, Oleg Kovářík, Miroslav Šnorek
Department of Computer Science and Engineering,
Faculty of Eletrical Engineering,
Czech Technical University in Prague, Czech Republic
[email protected] (Pavel Kordík)
Motivation
• Continuous optimization
• Several methods available
• Which is the best?
• Is there any strategy to chose the best
method for given task?
2/18
Our task: FAKE GAME research project
DATA
WAREHOUSING
DATA
INTEGRATION
Classification, Prediction,
Identification and Regression
Classes boundaries,
relationship of variables
MO DEL
DATA
CLEANING
INPUT
DATA
MO DEL
AUTOMATED
DATA
PREPROCESSING
MO DEL
GAME ENGINE
Credibility
estim ation
MO DEL
MO DEL
DATA
INSPECTION
DATA
COLLECTION
MO DEL
Math equations
Interesting behaviour
Feature ranking
PROBLEM
IDENTIFICATION
FAKE INTERFACE
3/18
The GAME engine for automated
data mining
REGRESSION
MO DEL
OR
MO DEL
MO DEL
GAME
PREPROCESSED
DATA
MO DEL
MO DEL
CLASSIFICATION
OR
IDENTIFICATION
OR
MO DEL
How it works inside?
4/18
PREDICTION
The GAME engine: building a model
Group of
Adaptive
Models
Evolution
(GAME)
Inductive
model
First layer of units
x1
Linear
unit
x2
Input
variables
...
...
...
2nd layer of units
xn
n
y   ai xi  an 1
i 1
Heterogeneo
us units
Niching
genetic
algorithm (will
be explained)
employed in
each layer to
optimize the
topology of
GAME
networks.
Output
variable
Polynomial
unit
x1
x2
Units in layer evolved
by genetic algorithm
5/18
...
xn
 m r
y    ai  x j   a0
i 1 
j 1

n
Heterogeneous units in GAME
x1
x2
...
xn
x1
y   ai xi  an 1
x1
x2
...
xn
x1
xn
x1
Gaussian (GaussianNeuron)
y  1  an 1  * e

2
i 1
1 an2 2
Logistic (SigmNeuron)
1
y
n
1 e
  ai xi
 a0
Exponential (ExpNeuron)
xn
x1
Rational (PolyFractNeuron)
y
x2
...
x1
y  an2 * e
i 1
 a0
n
n
xn
6/18
n
 a x  a
i i
i 1 j 1
x x j  an2 1
 a0
n*i  j i
Universal (BPNetwork)
2 n 1
...
n
an1*  ai xi
an2 2
i 1
x2
...
 m r
y    ai  x j   a0
i 1 
j 1

n
...
 a0
xn
i 1
Polynomial (CombiNeuron)
x2
  xi  ai 
x2
xn


 n
y  an 1  sin an  2    ai xi  an 3   a0

 i 1

...
i 1
n
xn
Sin (SinusNeuron)
x2
n
x2
...
x1
Linear (LinearNeuron)
y   q
q 1

n
p 1
 pq ( x p )

Optimization of coefficients
(learning)
x1
x2
...
xn
Gaussian (GaussianNeuron)
 x i  a i 2
n
y’
y  1  an1  *e
 i 1
1 a n2 2
 a0
We are looking for optimal values of coefficients a0, a1, …, an+2
We have inputs x1, x2, …, xn and target output y in the training data set
The difference between unit output y’ and the target value y should
be minimal for all vectors from the training data set
m
E   ( y ' y ) 2
7/18
i 1
What is an analytic gradient and
how to derive it?
Error of the unit for training data
(energy surface)
Gradient of the error
Unit with gaussian transfer function
Partial derivation of error in the direction of coefficient ai
8/18
Partial derivatives of the Gauss unit
9/18
Optimization of their coefficients
a)
coefficients
a1 , a 2 , ..., a n
Unit
optimize coefficients
given inintial values
repeat
new values
Optimization
error
method
compute
Unit does not provide
analytic gradient
just error of the unit
error on
training
estimate
data
b)
gradient
final values
coefficients
a1 , a 2 , ..., a n
Unit
compute
compute
error on
gradient
training
of the
data
error
optimize coefficients
given inintial values
repeat
new values
Optimization
error
method
gradient
final values
10/18
Unit provides
analytic gradient
and the error of
the unit
Very efficient gradient based training for
hybrid networks developed!
Quasi Newton method
a) estimating gradient
b) gradient supplied
11/18
Optimization methods available in
GAME
12/18
Experimental results of competing opt.
methods on Building data set
Energy consumption
CG
DE
QN
SADE
all
SOS
CACO
PSO
HGAPSO
ACO
OS
palDE
Cold water consumption
Hot water consumption
QN
CG
SADE
DE
all
HGAPSO
CACO
SOS
palDE
ACO
PSO
OS
QN
all
DE
SADE
CG
OS
HGAPSO
CACO
SOS
palDE
ACO
PSO
RMS error on testing data sets (Building data) averaged over 5 runs
13/18
RMS error on the Boston data set
14/18
Classification accuracy [%] on the
Spiral data set
15/18
Evaluation on diverse data sets
What is it All?
16/18
Remember the Genetic algorithm
optimizing the structure of GAME?
4
1
5
Niching
GA
Linear transfer unit
1234567
1001000
Inputs
2
6
Optimization method
not imp lemened
CACO
Transfer func tion
y  a1 x1  a2 x2  a0
added into
c hromosomes
Polynomial trasfer unit
3
7
1234567 1234567 1234567
0000110 2115130 1203211
Inputs
Transfer func tion
y  a1 x1 x23  a2 x12 x2  a0
17/18
Opt. m.
DE
Conclusion
• It is wise to combine several different optimization
strategies for the training of inductive models.
• Evolution of optimization methods works, but it is
not significantly better than the random selection
of methods.
• Nature inspired methods are slow for this problem
(they don’t care about the analytic gradient).
• Future work: utilize the gradient in nature inspired
methods.
18/18
Related documents