Beruflich Dokumente
Kultur Dokumente
1
Scope:
❖ Build a cost effective model (system identification)
based on a set of data that trains a neural network
Main phases:
1. ANN architecture selection and training
2. ANN simulation - using the developed model
2
❖ In fitting problems, one want a neural network to map
between a data set of numeric inputs and a set of
numeric outputs (targets).
3
Neural network training
Supervised learning
4
Fitting (Modeling) a Simple Function
y = sin(2*x)./exp(x/5);
0.8
0.6
0.4
0.2
y
-0.2
-0.4
-0.6
-0.8
0 1 2 3 4 5 6 7 8 9 10
x
5 / 19
Problem formulation
x - inputs
y - targets (outputs)
101 data pairs
10
-4
10
-6
10
-8
10
0
5
10
15
20
25
-0.00079
-0.00074
-0.00068
-0.00063
-0.00058
-0.00052
-0.00047
Test
-0.00042
Training
Validation
Zero Error
-0.00037
-0.00031
-0.00026
-0.00021
-0.00015
-0.0001
Errors = Targets - Outputs -4.8e-05
Error Histogram with 20 Bins
4.98e-06
5.79e-05
0.000111
0.000164
0.000217
Function Fit for Output Element 1
1 Training Targets
Training Outputs
0.8 Validation Targets
Validation Outputs
Test Targets
0.6
Test Outputs
Errors
0.4
Output and Target
Fit
0.2
-0.2
-0.4
-0.6
-0.8
0x 10-4 1 2 3 4 5 6 7 8 9 10
5
0
Error
-5 Targets - Outputs
-10
Input
Training: R=1 Validation: R=1
0 0
slope -0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.5 0 0.5 -0.5 0 0.5
Target Target
0.2 0.2
0 0
-0.2 -0.2
-0.4 -0.4
-0.6 -0.6
-0.5 0 0.5 -0.5 0 0.5
Target Target
Functions to be modeled
(fitted)
• Avo
• GBW
Data structure Data set length: 800
Data samples
>> nftool
function net = create_fit_net(inputs,targets)
%CREATE_FIT_NET Creates and trains a fitting neural network.
% NET = CREATE_FIT_NET(INPUTS,TARGETS) takes these arguments:
% INPUTS - RxQ matrix of Q R-element input samples
% TARGETS - SxQ matrix of Q S-element associated target samples
% arranged as columns, and returns these results:
% NET - The trained neural network
% For example, to solve the Simple Fit dataset problem with this function:
% load simplefit_dataset
% net = create_fit_net(simplefitInputs,simplefitTargets);
% simplefitOutputs = sim(net,simplefitInputs);
% To reproduce the results you obtained in NFTOOL:
% net = create_fit_net(inputs,avo_target);
% Create Network
numHiddenNeurons = 20; % Adjust as desired
net = newfit(inputs,targets,numHiddenNeurons);
net.divideParam.trainRatio = 70/100; % Adjust as desired
net.divideParam.valRatio = 15/100; % Adjust as desired
net.divideParam.testRatio = 15/100; % Adjust as desired
% Plot
plotperf(tr) Matlab function
plotfit(net,inputs,targets)
plotregression(targets,outputs)
Simulink model
Neural Network
Avo_sota
Layer 1
weight
weight
Application: ANN based model for
Avo(IB,W12,W34,W56) for SOTA
Design parameters Range
(input variables)
IB [μA] 25 – 65
W12 [μm] 0,6 – 3,5
W34 [μm] 0,85 - 6,5
W56 [μm] 5 - 90
Data set:
input data:
output data:
For ANN generation use GenTrainANN.m