Vous êtes sur la page 1sur 13

EXPERIMENT 10

AIM:
To train a feed forward network using of IRIS data.
a) RADIAL BASIS (EXACT FIT)
b) RADIAL BASIS (FEWER NEURONS)
THEORY:
A radial basis function (RBF) is a real-valued function whose value
depends only on the distance from the origin. Sums of radial basis
functions are typically used to approximate given functions. This
approximation process can also be interpreted as a simple kind of neural
network; this was the context in which they originally surfaced.
Radial Basis (Exact Fit) and Linear Layer (Design)ANN models were
developed for predicting the shelf life of processed cheese stored at 30C.
Processed cheese is protein rich food, and is a comparable supplement to
meat protein. Soluble nitrogen, pH, standard plate count, yeast & mould
count, and spore count were taken as input parameters, and sensory
score as output parameter for developing models. ANN model predicted
the shelf life of processed cheese as 28.54 days which is close to
experimental shelf life of 30 days
Radial Basis (Fewer Neurons) and Multiple Linear Regression models were
developed for predicting the shelf life of processed cheese stored at 7-8 C
by taking body & texture, aroma & flavour, moisture, free fatty acids as
input parameters, and sensory score as output parameter. Mean square
error, root mean square error, coefficient of determination and Nash
Sutcliffe coefficient were used for calculating the prediction capability of
the developed models. The comparison of the two developed models
revealed that the performance of radial basis (fewer neurons) artificial
neural network model is better than that of statistical multiple linear
regression model for predicting the shelf life of processed cheese.
PROGRAM:
t=[1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0

1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0

1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0

0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 1 0
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1

0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1];
p=[5.1

3.5

1.4

4.9

3.0

1.4

4.7

3.2

1.3

4.6

3.1

1.5

5.0

3.6

1.4

5.4

3.9

1.7

4.6

3.4

1.4

5.0

3.4

1.5

4.4

2.9

1.4

4.9

3.1

1.5

5.4

3.7

1.5

4.8

3.4

1.6

4.8

3.0

1.4

4.3

3.0

1.1

5.8

4.0

1.2

5.7

4.4

1.5

5.4

3.9

1.3

5.1

3.5

1.4

5.7

3.8

1.7

5.1

3.8

1.5

5.4

3.4

1.7

5.1

3.7

1.5

4.6

3.6

1.0

5.1

3.3

1.7

4.8

3.4

1.9

5.0

3.0

1.6

5.0

3.4

1.6

5.2

3.5

1.5

5.2

3.4

1.4

4.7

3.2

1.6

4.8

3.1

1.6

5.4

3.4

1.5

5.2

4.1

1.5

5.5

4.2

1.4

4.9

3.1

1.5

5.0

3.2

1.2

5.5

3.5

1.3

4.9

3.6

1.4

4.4

3.0

1.3

5.1

3.4

1.5

5.0

3.5

1.3

4.5

2.3

1.3

4.4

3.2

1.3

5.0

3.5

1.6

5.1

3.8

1.9

4.8

3.0

1.4

5.1

3.8

1.6

4.6

3.2

1.4

5.3

3.7

1.5

5.0

3.3

1.4

7.0

3.2

4.7

6.4

3.2

4.5

6.9

3.1

4.9

5.5

2.3

4.0

6.5

2.8

4.6

5.7

2.8

4.5

6.3

3.3

4.7

4.9

2.4

3.3

6.6

2.9

4.6

5.2

2.7

3.9

5.0

2.0

3.5

5.9

3.0

4.2

6.0

2.2

4.0

6.1

2.9

4.7

5.6

2.9

3.6

6.7

3.1

4.4

5.6

3.0

4.5

5.8

2.7

4.1

6.2

2.2

4.5

5.6

2.5

3.9

5.9

3.2

4.8

6.1

2.8

4.0

6.3

2.5

4.9

6.1

2.8

4.7

6.4

2.9

4.3

6.6

3.0

4.4

6.8

2.8

4.8

6.7

3.0

5.0

6.0

2.9

4.5

5.7

2.6

3.5

5.5

2.4

3.8

5.5

2.4

3.7

5.8

2.7

3.9

6.0

2.7

5.1

5.4

3.0

4.5

6.0

3.4

4.5

6.7

3.1

4.7

6.3

2.3

4.4

5.6

3.0

4.1

5.5

2.5

4.0

5.5

2.6

4.4

6.1

3.0

4.6

5.8

2.6

4.0

5.0

2.3

3.3

5.6

2.7

4.2

5.7

3.0

4.2

5.7

2.9

4.2

6.2

2.9

4.3

5.1

2.5

3.0

5.7

2.8

4.1

6.3

3.3

6.0

5.8

2.7

5.1

7.1

3.0

5.9

6.3

2.9

5.6

6.5

3.0

5.8

7.6

3.0

6.6

4.9

2.5

4.5

7.3

2.9

6.3

6.7

2.5

5.8

7.2

3.6

6.1

6.5

3.2

5.1

6.4

2.7

5.3

6.8

3.0

5.5

5.7

2.5

5.0

5.8

2.8

5.1

6.4

3.2

5.3

6.5

3.0

5.5

7.7

3.8

6.7

7.7

2.6

6.9

6.0

2.2

5.0];

q=[6.9
5.6
7.7
6.3
6.7
7.2
6.2
6.1
6.4
7.2
7.4
7.9
6.4
6.3
6.1
7.7
6.3
6.4
6.0
6.9
6.7
6.9
5.8
6.8
6.7
6.7
6.3
6.5
6.2
5.9

2.8
2.8
2.7
3.3
3.2
2.8
3.0
2.8
3.0
2.8
3.8
2.8
2.8
2.6
3.0
3.4
3.1
3.0
3.1
3.1
3.1
2.7
3.2
3.3
3.0
2.5
3.0
3.4
3.0

3.2

5.7

4.9
6.7
4.9
5.7
6.0
4.8
4.9
5.6
5.8
6.1
6.4
5.6
5.1
5.6
6.1
5.6
5.5
4.8
5.4
5.6
5.1
5.1
5.9
5.7
5.2
5.0
5.2
5.4
5.1];

Output:
RADIAL BASIS (EXACT FIT)

Spread Constant 0.1


[0.005105 0.0012212 0.011472 0.00076769 0.013228 -0.0038787 0.00060376
-0.0021653 0.0012545 0.029086 0.062861 0.22674 0.0012545 0.0016246
0.019851 0.26767 0.020311 -0.0019246 -0.0017219 0.006946 0.001655
0.0038031 3.7437e-012 0.00055062 0.013228 0.00053675 6.0574e-005
0.00054852 0.018821 -0.0037207;
-1.1119 -0.53497 -0.30071 1.0006 -1.7049 0.16249 0.99336 1.1156 -0.5767
0.47427 0.0027999 4.5145 -0.5767 0.88729 -2.6673 1.7883 -0.62671 0.23982
1.1355 0.17648 -0.65749 0.9073 7.8494e-011 -0.79628 -1.7049 0.67545
0.74004 0.49572 -0.36624 0.72817;

2.1068 1.5338 1.2892 -0.0013654 2.6916 0.84139 0.0060345 -0.11343 1.5754


0.49664 0.93434 -3.7412 1.5754 0.11108 3.6475 -1.056 1.6064 0.76211
-0.13377 0.81658 1.6558 0.088896 1 1.7957 2.6916 0.32401 0.2599 0.50373
1.3474 0.27555]

Spread Constant 0.2


[1.655e-016 1.1045e-016 1.6834e-016 3.4037e-016 1.6629e-016
2.3243e-016 1.2928e-016 1.2633e-016 -3.9492e-017 2.2738e-016
2.3852e-016 2.0861e-016 -3.9492e-017 2.0836e-016 1.6494e-016
2.0928e-016 2.0125e-016 3.799e-016 4.5263e-017 1.1834e-016 1.4796e016 2.7276e-016 -1.1488e-016 1.5812e-016 1.6629e-016 2.6193e-016
4.7284e-016 3.1879e-016 2.3057e-016 2.5009e-016;
0.66937 0.61318 0.41223 1.0189 0.81949 0.5724 1.0286 0.98603
0.094215 0.29939 0.61431 0.89489 0.094215 0.726 0.89701 0.96384
0.87013 0.16016 0.97609 0.44599 0.18902 0.96563 1.5543e-015 0.79508
0.81949 0.67546 0.95194 0.2849 0.85316 0.66089;
0.33063 0.38682 0.58777 -0.018882 0.18051 0.4276 -0.028594
0.013968 0.90579 0.70061 0.38569 0.10511 0.90579 0.274 0.10299
0.036157 0.12987 0.83984 0.023907 0.55401 0.81098 0.034367 1
0.20492 0.18051 0.32454 0.048058 0.7151 0.14684 0.33911]

Spread Constant 2.0


[-0.084397 -0.0012842 0.93283 0.00042787 0.028374 -0.32582
0.00049069 -0.0046353 0.026726 0.14066 0.65687 2.7533 0.026726
0.0018457 -0.10816 2.3687 0.26196 -0.014637 -0.0025997 -0.0067992
-0.02393 0.0063718 -3.1102e-008 -0.14649 0.028374 -0.0028065
-0.0066417 -0.0050604 0.18154 -0.013904;
-0.58037 -0.8058 -9.732 0.87336 -0.75672 0.74568 0.94746 1.0741
-0.86638 0.19303 -2.6867 -36.049 -0.86638 0.69481 -1.75 -12.9605
-0.87461 0.49087 1.1098 0.2461 -0.39176 0.93585 1.2475e-007 1.1793
-0.75672 0.60847 0.84222 0.35555 -0.82986 0.96142;
1.6648 1.8071 9.7991 0.12622 1.7283 0.58014 0.05205 -0.069498
1.8397 0.66632 3.0299 34.2957 1.8397 0.30335 2.8582 11.5918 1.6126
0.52376 -0.10721 0.7607 1.4157 0.057776 1 -0.032846 1.7283 0.39434
0.16442 0.64951 1.6483 0.052485]

RADIAL BASIS (FEWER NEURONS)

Spread Constant 0.1


[0.99781 0.99572 0.98047 0.93574 0.99987 0.98437 0.75721 0.981

0.73611 0.75 0.98437 0.99988 0.73611 0.98333 0.99988 1 0.99993


0.7092 0.88206 0.87524 0.858 0.92436 6.6613e-016 0.99982 0.99987
0.93564 0.49989 0.9484 0.99811 0.97725;
-2.8146e-011 -0.0001133 2.9799e-015 0.064258 -8.6289e-013 2.9957e015 0.24279 0.018995 -2.7806e-009 2.0195e-015 2.9892e-015 3.0318e015 -2.7806e-009 0.0011038 7.4754e-009 3.0322e-015 3.65e-009
1.8325e-006 0.11794 4.9519e-007 -3.5049e-009 0.075661 8.5803e-016
2.773e-015 -8.6289e-013 0.061432 0.50005 0.0037769 1.1635e-007
0.0010416;
0.0021941 0.004395 0.019531 -3.7013e-008 0.00012923 0.015635
-3.6929e-006 1.5978e-006 0.26389 0.25 0.015633 0.00012207 0.26389
0.015564 0.00012187 4.9174e-007 6.7254e-005 0.2908 5.0687e-006
0.12476 0.142 -1.6577e-005 1 0.00018383 0.00012923 0.0029308
6.0113e-005 0.047823 0.0018904 0.02171]

Spread Constant 0.2


[0.60377 0.5752 0.37113 0.21712 0.73796 0.51531 0.17089 0.40807
0.093834 0.26956 0.55306 0.80568 0.093834 0.36091 0.80029 0.86775
0.77798 0.12803 0.15482 0.38591 0.17346 0.45832 4.7228e-006 0.71594
0.73796 0.282 0.082994 0.15144 0.75752 0.40455;
0.065566 0.037993 0.041081 0.80249 0.081496 0.057065 0.85806
0.57391 0.00038007 0.029815 0.061223 0.089181 0.00038007 0.36491
0.09668 0.096053 0.092113 0.032127 0.81712 0.060061 0.015545
0.50732 -1.9144e-005 0.079104 0.081496 0.39346 0.86861 0.13346
0.095598 0.25606;
0.33066 0.38681 0.58779 -0.019612 0.18055 0.42763 -0.028946
0.018024 0.90579 0.70062 0.38571 0.10514 0.90579 0.27418 0.10303
0.036197 0.1299 0.83985 0.028064 0.55403 0.81099 0.034357 1 0.20495
0.18055 0.32454 0.0484 0.7151 0.14688 0.33939]

Spread Constant 2.0


[-0.0087291 -0.017266 -0.09501 -0.0020278 -0.025452 0.013134
-0.0010282 0.0085567 -0.017048 0.011581 0.0071385 -0.036811
-0.017048 0.0032435 -0.032237 -0.21736 -0.072494 0.0053042
0.0064271 0.0058903 -0.009659 0.0059334 1.1512e-006 -0.0029881
-0.025452 0.0020165 0.0018923 0.0024955 -0.055121 0.008436;
-0.52382 -0.86992 -6.2693 0.86642 -0.78081 1.386 0.94768 1.0214
-0.80746 0.60649 -0.59262 -7.8231 -0.80746 0.70026 -2.5242 -1.6725
-1.0684 0.36742 1.0771 0.25294 -0.3645 0.91083 0.014277 0.68272
-0.78081 0.62444 0.87072 0.39572 -0.84872 0.7491;
1.5325 1.8872 7.3643 0.13561 1.8063 -0.39913 0.053353 -0.02993
1.8245 0.38193 1.5855 8.8599 1.8245 0.2965 3.5565 2.8899 2.1409
0.62728 -0.083526 0.74117 1.3742 0.08324 0.98572 0.32027 1.8063
0.37354 0.12738 0.60178 1.9038 0.24246]

Vous aimerez peut-être aussi