Вы находитесь на странице: 1из 4

Name

: Muhammad Syahrun Zahier

NIM

: 03101404001

2 nd Assignment Artificial Neural Network

Diketahui input dan target vektor P=[4 6 8 10 12 14 16 18 20 22 24 26 28 30;1 3 5 7 9 11 13 15 17 19 21 23 25 27 ];%data training T=[29 57 93 137 189 249 317 393 477 569 669 777 893 1017];%data target training A=[5 7 9 11 13 15 17 19 21 23 25 27 29;2 4 6 8 10 12 14 16 18 20 22 24 26 ];%data testing Problem: Selesaikan dengan menggunakan radial basis function, plot regresi linear dan perbandingan antara target dan output!

Jawab :

P

=

Columns 1 through 13

 
 

4

6

8

10

12

14

16

18

20

22

24

26

28

1

3

5

7

9

11

13

15

17

19

21

23

25

Column 14

 
 

30

27

T

=

Columns 1 through 6

 
 

29

57

93

137

189

249

Columns 7 through 12

 
 

317

393

477

569

669

777

 

Columns 13 through 14

 
 

893

1017

A

=

5

7

9

11

13

15

17

19

21

23

25

27

29

2

4

6

8

10

12

14

16

18

20

22

24

26

net =

Neural Network

name: 'Radial Basis Network, Exact' efficiency: .cacheDelayedInputs, .flattenTime, .memoryReduction userdata: (your custom info)

dimensions:

numInputs: 1 numLayers: 2 numOutputs: 1 numInputDelays: 0 numLayerDelays: 0 numFeedbackDelays: 0 numWeightElements: 57 sampleTime: 1

connections:

biasConnect: [1; 1] inputConnect: [1; 0] layerConnect: [0 0; 1 0] outputConnect: [0 1]

subobjects:

inputs: {1x1 cell array of 1 input} layers: {2x1 cell array of 2 layers} outputs: {1x2 cell array of 1 output} biases: {2x1 cell array of 2 biases} inputWeights: {2x1 cell array of 1 weight} layerWeights: {2x2 cell array of 1 weight}

functions:

adaptFcn: (none) adaptParam: (none) derivFcn: 'defaultderiv' divideFcn: (none)

divideParam: (none) divideMode: 'sample' initFcn: 'initlay' performFcn: (none) performParam: (none) plotFcns: {} plotParams: {1x0 cell array of 0 params} trainFcn: (none) trainParam: (none)

weight and bias values:

IW: {2x1 cell} containing 1 input weight matrix LW: {2x2 cell} containing 1 layer weight matrix b: {2x1 cell} containing 2 bias vectors

methods:

adapt: Learn while in continuous use configure: Configure inputs & outputs gensim: Generate Simulink model init: Initialize weights & biases perform: Calculate performance sim: Evaluate network outputs given inputs train: Train network with examples view: View diagram unconfigure: Unconfigure inputs & outputs

weight_input =

[14x2 double]

bias_input =

[14x1 double]

weight_layer =

[1x14 double]

bias_layer =

 

[28.8912]

F

=

1.0e+003 *

Columns 1 through 8

 

0.0290

0.0570

0.0930

0.1370

0.1890

0.2490

0.3170

0.3930

Columns 9 through 14

 
 

0.4770

0.5690

0.6690

0.7770

0.8930

1.0170

Y

=

Columns 1 through 8

35.8565

51.7520

71.5972

Columns 9 through 13

95.4115 123.1948 154.9473 190.6687 230.3593

274.0189 321.6475 373.2452 428.8077 489.4246

PLOT yang dihasilkan

9 through 13 95.4115 123.1948 154.9473 190.6687 230.3593 274.0189 321.6475 373.2452 428.8077 489.4246 PLOT yang dihasilkan