-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path07-rbf-neuron.nb
4252 lines (4186 loc) · 223 KB
/
07-rbf-neuron.nb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 8.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 157, 7]
NotebookDataLength[ 228559, 4243]
NotebookOptionsPosition[ 225681, 4146]
NotebookOutlinePosition[ 226299, 4168]
CellTagsIndexPosition[ 226256, 4165]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[CellGroupData[{
Cell[TextData[{
"Kapitola 7 - Pokryt\[IAcute] dat jednoduchou RBF s\[IAcute]t\[IAcute]\n",
StyleBox["Demonstrace pokryt\[IAcute] vstupn\[IAcute]ch dat RBF s\[IAcute]t\
\[IAcute].", "Subtitle"]
}], "Title",
CellChangeTimes->{{3.506788333052947*^9, 3.5067883454315195`*^9}, {
3.5073590076481843`*^9, 3.507359032449834*^9}, 3.5073599568952236`*^9, {
3.5073600002592297`*^9, 3.507360001479885*^9}, {3.507360051770771*^9,
3.5073600524743605`*^9}, {3.507360282704596*^9, 3.507360287426696*^9}, {
3.5073607144794245`*^9, 3.5073607224504366`*^9}, {3.5091842641177597`*^9,
3.5091842969344263`*^9}, 3.5091845406333723`*^9, {3.509732481170865*^9,
3.509732491473673*^9}, {3.5134256166183276`*^9, 3.513425621020887*^9}}],
Cell[CellGroupData[{
Cell["\<\
Na\[CHacek]ten\[IAcute] knihovny NeuralNetworks\
\>", "Section",
CellChangeTimes->{{3.5073602800352573`*^9, 3.5073603289964743`*^9}}],
Cell["\<\
Nejd\[RHacek]\[IAcute]ve na\[CHacek]teme knihovnu neuronov\[YAcute]ch s\
\[IAcute]t\[IAcute].\
\>", "Text",
CellChangeTimes->{{3.507360408586581*^9, 3.507360469435308*^9}, {
3.5073605129338317`*^9, 3.5073605139169564`*^9}, {3.507360599217788*^9,
3.50736063908185*^9}, {3.5073606876975236`*^9, 3.5073607032795024`*^9}, {
3.5073607601777277`*^9, 3.5073607715351696`*^9}, {3.5084334105739098`*^9,
3.5084334111769867`*^9}}],
Cell[BoxData[
StyleBox[
RowBox[{"<<", " ", "NeuralNetworks`"}], "Input"]], "Input",
InitializationCell->True,
CellChangeTimes->{{3.507360750489497*^9, 3.5073607641152277`*^9}}],
Cell["\<\
Pokud pracujete v Mathematice 8.0, vypn\[EHacek]te je\[SHacek]t\[EHacek] \
zobrazov\[AAcute]n\[IAcute] chybov\[EAcute] hl\[AAcute]\[SHacek]ky \
Remove::rmnsm. Tuto hl\[AAcute]\[SHacek]ku vyhazuj\[IAcute] funkce knihovny \
NeuralNetworks. Na funkci knihovny toto nem\[AAcute] \[ZHacek]\[AAcute]dn\
\[YAcute] vliv.\
\>", "Text",
CellChangeTimes->{{3.5073722663308234`*^9, 3.5073724902892623`*^9}}],
Cell[BoxData[
RowBox[{"Off", "[",
StyleBox[
RowBox[{"Remove", "::", "rmnsm"}], "MessageName"], "]"}]], "Input",
InitializationCell->True,
CellChangeTimes->{{3.507372496128004*^9, 3.5073725146658583`*^9}}]
}, Open ]],
Cell[CellGroupData[{
Cell["P\[RHacek]\[IAcute]prava tr\[EAcute]novac\[IAcute]ch dat", "Section",
CellChangeTimes->{{3.507360869997173*^9, 3.507360875055815*^9}}],
Cell["\<\
Pokryt\[IAcute] vstupn\[IAcute]ch budeme p\[RHacek]edv\[AAcute]d\[EHacek]t na \
klasifikaci do dvou t\[RHacek]\[IAcute]d. Data budeme m\[IAcute]t jednoduch\
\[AAcute] dvoudimenzion\[AAcute]ln\[IAcute], kter\[AAcute] obsahuj\[IAcute] \
dva dob\[RHacek]e odd\[EHacek]len\[EAcute] shluky, ka\[ZHacek]d\[YAcute] \
shluk reprezentuje jednu t\[RHacek]\[IAcute]du.
Vygenerujeme tyto dva shluky dat.\
\>", "Text",
CellChangeTimes->{{3.5073620917938213`*^9, 3.5073621035783176`*^9}, {
3.509184354274708*^9, 3.509184489889429*^9}, {3.509185481188308*^9,
3.5091854994251237`*^9}, {3.5091898321173058`*^9, 3.5091898618060756`*^9}, {
3.5091908029935913`*^9, 3.5091908770049896`*^9}, {3.509732549689066*^9,
3.509732551150251*^9}, {3.515090763422345*^9, 3.5150907649854345`*^9}}],
Cell[BoxData[{
RowBox[{
RowBox[{"values", "=", "50"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"cluster1", " ", "=",
RowBox[{"RandomReal", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"-", "2"}], ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"values", ",", "2"}], "}"}]}], "]"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"cluster2", "=",
RowBox[{"RandomReal", "[", " ",
RowBox[{
RowBox[{"{",
RowBox[{"9", ",", "12"}], "}"}], ",",
RowBox[{"{",
RowBox[{"values", ",", "2"}], "}"}]}], "]"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"inData", " ", "=", " ",
RowBox[{"Join", "[",
RowBox[{"cluster1", ",", "cluster2"}], "]"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"outcluster1", "=",
RowBox[{"ConstantArray", "[",
RowBox[{
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{", "values", "}"}]}], "]"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"outcluster2", " ", "=", " ",
RowBox[{"ConstantArray", "[",
RowBox[{
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{", "values", "}"}]}], "]"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"outData", "=", " ",
RowBox[{"Join", "[",
RowBox[{"outcluster1", ",", "outcluster2"}], "]"}]}], ";"}]}], "Input",
CellChangeTimes->{{3.5091855103405094`*^9, 3.509185532356305*^9}, {
3.5091855978401203`*^9, 3.5091856688261347`*^9}, {3.5091857377543874`*^9,
3.509185750454*^9}, {3.5091857821155205`*^9, 3.509185786404565*^9}, {
3.509186348269413*^9, 3.50918637218145*^9}, {3.509186664515571*^9,
3.509186668809616*^9}, {3.5091867905415745`*^9, 3.509186802801631*^9}, {
3.5091870668966675`*^9, 3.5091870720863256`*^9}, {3.5091871584542933`*^9,
3.5091873303591223`*^9}, {3.50918754304263*^9, 3.509187543728217*^9}, {
3.50918758974006*^9, 3.509187642075206*^9}, {3.509187799677718*^9,
3.5091878139145265`*^9}, {3.509187969921837*^9, 3.5091879997666264`*^9}, {
3.509188187977026*^9, 3.509188278772556*^9}, {3.509188348231876*^9,
3.509188437204674*^9}, {3.509188500154668*^9, 3.5091885259824476`*^9}, {
3.5091886021426187`*^9, 3.509188653836683*^9}, {3.509188689812251*^9,
3.509188784310751*^9}, {3.509188814371068*^9, 3.5091888679148674`*^9}, {
3.5091889251961412`*^9, 3.509188926575816*^9}, {3.509189079097684*^9,
3.509189108400905*^9}, {3.5091891707313204`*^9, 3.5091891901862907`*^9}, {
3.509189251970136*^9, 3.5091892761577077`*^9}, {3.5091894251826315`*^9,
3.5091894362410355`*^9}, {3.5091895357021656`*^9,
3.5091897747410192`*^9}, {3.509189872622949*^9, 3.5091899400430107`*^9}, {
3.509190731841556*^9, 3.5091907334067545`*^9}, {3.5091908897611094`*^9,
3.50919092362941*^9}, {3.509190958101287*^9, 3.5091909818303003`*^9}, {
3.5091915027719517`*^9, 3.5091915264809628`*^9}, {3.5091915633571453`*^9,
3.5091915637176905`*^9}, {3.50919199707372*^9, 3.5091920101108756`*^9}, {
3.5091921912358756`*^9, 3.5091921958139567`*^9}, {3.5091923552176986`*^9,
3.509192391660326*^9}, {3.5091924498927207`*^9, 3.5091924541672635`*^9},
3.509192807676654*^9, {3.509198558624431*^9, 3.5091985607171965`*^9}, {
3.509205762099656*^9, 3.509205767450836*^9}, {3.5092059557632484`*^9,
3.5092059595387278`*^9}, {3.5092060759615116`*^9,
3.5092060767631135`*^9}, {3.5092061216518135`*^9, 3.509206125820343*^9}, {
3.5092062140560474`*^9, 3.509206226810667*^9}, 3.5092070326129913`*^9, {
3.5092070832264185`*^9, 3.5092070854176965`*^9}, {3.5092072115787168`*^9,
3.509207215992777*^9}, {3.509207469811508*^9, 3.5092074702955694`*^9}, {
3.5092075587703047`*^9, 3.509207563584916*^9}}],
Cell["\<\
Takto vypadaj\[IAcute] na\[SHacek]e vynerovan\[AAcute] vstupn\[IAcute] data. \
Data m\[URing]\[ZHacek]eme ch\[AAcute]pat jako seznam bod\[URing], \
ur\[CHacek]en\[YAcute]ch sv\[YAcute]mi {x,y} sou\[RHacek]adnicemi.\
\>", "Text",
CellChangeTimes->{{3.509199930633654*^9, 3.5091999655545883`*^9}, {
3.5097325673653097`*^9, 3.509732688336672*^9}}],
Cell[CellGroupData[{
Cell[BoxData["inData"], "Input",
CellChangeTimes->{{3.5091999517743387`*^9, 3.5091999526534505`*^9}}],
Cell[BoxData[
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"0.9463666015073091`", ",",
RowBox[{"-", "0.7437951819384239`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.5435517056603318`"}], ",", "0.3971252747327263`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.565977139591408`"}], ",",
RowBox[{"-", "0.42399986397236766`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.54302627520733`", ",", "0.5663362802403213`"}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.2766090749850854`"}], ",",
RowBox[{"-", "1.7229631375495624`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.40464158674033435`"}], ",",
RowBox[{"-", "1.681988569881364`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.9162991777513305`"}], ",",
RowBox[{"-", "0.6970980722604754`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.11857301944645737`", ",", "0.274278003812225`"}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.1400932808528843`"}], ",",
RowBox[{"-", "0.5065050043296431`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.33248906924786326`", ",",
RowBox[{"-", "0.4999357213821032`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.5773453505962509`", ",", "0.9182293442661731`"}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.9017181455896388`"}], ",", "0.1252756655857521`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.0616267757127114`"}], ",", "0.05106663837541259`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.8984725711591564`"}], ",",
RowBox[{"-", "1.5132177140701564`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.860098357824803`"}], ",",
RowBox[{"-", "1.7240742056260636`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.5209856449794419`", ",",
RowBox[{"-", "0.44418673087973914`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.11339096010496963`", ",",
RowBox[{"-", "1.1809488917638058`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.34693990945009645`"}], ",", "0.9100633729927772`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.3976282835425238`"}], ",",
RowBox[{"-", "1.624866988514711`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.2911433302926651`"}], ",",
RowBox[{"-", "0.5808302191732491`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.8441110832807617`"}], ",",
RowBox[{"-", "1.8607744876382255`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.2322438156165223`"}], ",",
RowBox[{"-", "1.110102309532377`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.3942589239335859`"}], ",", "0.7391323970293397`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.3700337302593688`"}], ",",
RowBox[{"-", "1.3217829441253839`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.574173846875638`"}], ",",
RowBox[{"-", "0.6378699269807662`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.5272700598050566`"}], ",", "0.6599007257780949`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.4656945729602091`"}], ",",
RowBox[{"-", "1.4521253947057953`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.4603128838269432`"}], ",",
RowBox[{"-", "0.8563235473975421`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.2305933282321453`"}], ",",
RowBox[{"-", "0.25954061646401705`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.3610855288703796`"}], ",", "0.2865746481849314`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{"0.7367858352727152`", ",",
RowBox[{"-", "0.817345768826164`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.0122214479155476`"}], ",",
RowBox[{"-", "0.7668790185439409`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.12018183793736537`"}], ",", "0.7068504259879393`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.64308652138729`"}], ",", "0.6643968406539766`"}], "}"}],
",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.5559909423529774`"}], ",", "0.039468289371891174`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.5204131924353157`"}], ",", "0.1291066058930488`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.750540802002626`"}], ",",
RowBox[{"-", "1.656745719216465`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.30608438383320813`", ",",
RowBox[{"-", "1.820055546575022`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.7093240865890404`", ",",
RowBox[{"-", "0.5634613807278095`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.9215291222808712`"}], ",",
RowBox[{"-", "0.46083712374585506`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.35461959355616646`", ",",
RowBox[{"-", "0.638048713281206`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.7516217912773691`", ",",
RowBox[{"-", "1.4107720911177601`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.43517196514268264`", ",", "0.48264000331506907`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.8967400180817249`", ",",
RowBox[{"-", "1.434414258496985`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.16316567643854896`", ",",
RowBox[{"-", "0.34167884421553474`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.1231628658181263`", ",",
RowBox[{"-", "0.5744355607397624`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "0.4020954226178066`"}], ",", "0.9951706475919213`"}],
"}"}], ",",
RowBox[{"{",
RowBox[{
RowBox[{"-", "1.6217595581585407`"}], ",",
RowBox[{"-", "1.7811095923714806`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.6469603482430273`", ",",
RowBox[{"-", "1.951322061610174`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0.4211450894699018`", ",",
RowBox[{"-", "1.2459965587409814`"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.698523821901341`", ",", "9.128035678138886`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.070625283606242`", ",", "9.631534691834663`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.316526546849826`", ",", "11.666586241595619`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.30742939822657`", ",", "10.0072546488705`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.29196033068325`", ",", "11.368622595976339`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.221604197366688`", ",", "10.85975216603818`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.67940445952203`", ",", "9.450718005974283`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.340690600004669`", ",", "10.835340464151098`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.224586397309654`", ",", "11.757098823886142`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.91820777108706`", ",", "11.886156881001599`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.141119178467555`", ",", "10.922444825712155`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.455291480130969`", ",", "11.61103445195492`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.721377764480284`", ",", "9.090011181710642`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.864083791620793`", ",", "10.722772399304588`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.966232408257987`", ",", "11.010494644602478`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.557537780315005`", ",", "10.30848649591983`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.83864176244995`", ",", "9.962438125479801`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.383359710106747`", ",", "11.718073709178636`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.022529991274055`", ",", "11.466718403683274`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.935543387129753`", ",", "10.890055258378709`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.95200929096946`", ",", "10.259062012243689`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.563888483542534`", ",", "11.89976724242981`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.28923813222126`", ",", "9.649160630568897`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.702984755605621`", ",", "9.314529575925068`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.59320603916512`", ",", "10.612336597617581`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.187929414995967`", ",", "11.013825162957723`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.7905195485133`", ",", "10.820917541621327`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.665290523027194`", ",", "11.983703254592141`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.439478181436126`", ",", "11.272790226395365`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.500012233957511`", ",", "11.929867187221888`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.814346509572934`", ",", "10.761607724565854`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.88596002836936`", ",", "11.49117135872217`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.697548871235579`", ",", "10.555074250538437`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.373941058145638`", ",", "11.153640073869667`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.78785410123335`", ",", "11.340923617766709`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.548575287141913`", ",", "11.771567022566053`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.66935022969271`", ",", "9.94995136283079`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.734294632459125`", ",", "11.259632183429295`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.761686112493017`", ",", "10.430221420956617`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.858452493019769`", ",", "9.835645275571444`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.846107030953679`", ",", "9.460144243364187`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.658982144786675`", ",", "11.877128992763048`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"9.770375074444676`", ",", "9.844165388701672`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.004709997369961`", ",", "10.648153345617533`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.701190233620048`", ",", "9.864887109856163`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.77275826493359`", ",", "10.002627228681966`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.574216106390844`", ",", "10.437002189707153`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.07401958630223`", ",", "10.116528830305436`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"10.530601490258041`", ",", "9.342202423558934`"}], "}"}], ",",
RowBox[{"{",
RowBox[{"11.84228491131159`", ",", "11.390221950349707`"}], "}"}]}],
"}"}]], "Output",
CellChangeTimes->{3.5097324158030643`*^9, 3.5150908768598332`*^9}]
}, Open ]],
Cell["\<\
A takto vypadaj\[IAcute] data v\[YAcute]stupn\[IAcute].\
\>", "Text",
CellChangeTimes->{{3.5091999694895887`*^9, 3.509199978046175*^9}}],
Cell[CellGroupData[{
Cell[BoxData["outData"], "Input",
CellChangeTimes->{{3.509199982189201*^9, 3.5091999856711435`*^9}}],
Cell[BoxData[
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"1", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}]}], "}"}]], "Output",
CellChangeTimes->{3.509732415844569*^9, 3.5150908768808346`*^9}]
}, Open ]],
Cell["\<\
Vygenerovan\[AAcute] data si m\[URing]\[ZHacek]eme zobrazit pro lep\[SHacek]\
\[IAcute] p\[RHacek]edstavu zobrazit. Ka\[ZHacek]d\[AAcute] t\[RHacek]\
\[IAcute]da dat je reprezentov\[AAcute]na jinou barvou.\
\>", "Text",
CellChangeTimes->{{3.5091899511879253`*^9, 3.5091899961536355`*^9}, {
3.509199898841117*^9, 3.5091999040332766`*^9}, {3.5097327083887177`*^9,
3.5097327132618365`*^9}}],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"ListPlot", "[",
RowBox[{
RowBox[{"{",
RowBox[{"cluster1", ",", "cluster2"}], "}"}], ",",
RowBox[{"PlotStyle", "\[Rule]",
RowBox[{"{",
RowBox[{"Red", ",", "Green"}], "}"}]}]}], "]"}]], "Input",
CellChangeTimes->{{3.5091900063439293`*^9, 3.50919003501157*^9}, {
3.5091900701180277`*^9, 3.509190076075284*^9}, {3.509190113283009*^9,
3.5091901461991887`*^9}, {3.509190181925726*^9, 3.509190194002759*^9}, {
3.5091902988505735`*^9, 3.5091903526499047`*^9}, {3.5091904428043528`*^9,
3.5091905012952805`*^9}, {3.509190532957301*^9, 3.509190537114329*^9}, {
3.50919057681487*^9, 3.5091907234394894`*^9}}],
Cell[BoxData[
GraphicsBox[{{},
{RGBColor[1, 0, 0], PointBox[CompressedData["
1:eJwBMQPO/CFib1JlAgAAADIAAAACAAAAkARwnKJI7j8AIquNK83nvzTw90Vj
svi/wBfZIIBq2T90Qo0LPg75v+BDUVPQItu/MEuco3hg4T+AdEVDbR/iP3Bn
LaP9bPS/ntJ/y0GR+7+grmnTpeXZvyguvths6fq/oGU5p1JS7b8Q1M6doE7m
v8DjtSjNWr4/0K4YVMWN0T+AhNOdk+7Bv6Blm/tJNeC/gJysO4BH1T8gDVxl
8v7fv6jf6fSceeI/QDl7gSJi7T9wjTAD4Nrsv8B0VnMICcA/hOejW2z88L+A
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je7LmKEVQzPGHNgXFJO8xrYaDFC/y2z6uqRER
bR0Y/7NORMgfh7ThVQyWlprue0kcW+otu+zdAqLE/e5NForO4Ou11jKG/dQ9
PKynOO+QZZh2cyh2zkmY3E7g9GlZbWvg2Gd70IBoAaWFoeWqOwzWY3JX8DOK
b+tcO+/O5VgoZ2lqHcMG3dhXATMEnPVu+zT1EsHTnvhIXz1DwuESha2XoOhC
u/EHTxG5W3IOZUxkSM8UnU6px6+/jfyU/CdDf6Wp3P4/QarX19VL7AKW+euT
zFqODzW+PjkfCSjOfmnr7xUxZ6Mr193JobxSGl/RxLBe88HVtCccA7qzjSVZ
FMM3GkcqlASjt9epLP9yDKrmeQYWULTEfNH8fSxBXGvosR4Ng6D/0nPUCQEj
HhcvVIUxnLxVPSMrUtK71Bg9d42Itr2/BPp7S35p2sHaAo4Hfa1xy0sZuOFo
f3ECw/JHb/rMLo5aVh+teCjiot/4aWV5IsZ27SjykBGcMsQZAx0chvQCr1fF
BEnNRXpnNsPlm3uMRxoIlP+9vrF1SMS4khAlS2GY3BZujZjAMHS5ZWbGXyKU
SH12epmIqaaOI2sPMDw3rMo1WkSEJU53dAZx2MPCb4/K41DPtPtVJBJExq7z
WtNNUOy/IrM/k+GqSberN0sE7euoGsom+Dxo/dBiB8WYtdcD9lYy2BcfOH+3
jCCi+vbLWVbpnlztVfhCgFaRH/zjSoY7BdQnsJ5D//fook25BH5NU/SflRMI
iTGrUuUU1zZ/V39vKUOaWrFOLv3Toaw03JJ2H5xlHjgp5YrNCUlSe1CM5C81
uxlDKFtYV3ufwun4pKuLiejR2M6cjqJS3+PuM74Mqwv7+OxzAq68bXLNP8fR
0dE1/Z8mEe8A/kddSA==
"]]}, {}},
AspectRatio->NCache[GoldenRatio^(-1), 0.6180339887498948],
Axes->True,
AxesOrigin->{0, 0},
PlotRange->{{-1.9215291222808712`, 11.95200929096946}, {-1.951322061610174,
11.983703254592141`}},
PlotRangeClipping->True,
PlotRangePadding->{
Scaled[0.02],
Scaled[0.02]}]], "Output",
CellChangeTimes->{3.5096156053478737`*^9, 3.5097324158850746`*^9,
3.5150908769008355`*^9}]
}, Open ]],
Cell["\<\
Po vygenerov\[AAcute]n\[IAcute] dat m\[URing]\[ZHacek]eme \
za\[CHacek]\[IAcute]t u\[CHacek]it s\[IAcute]\[THacek].\
\>", "Text",
CellChangeTimes->{{3.5091910410953264`*^9, 3.50919106979097*^9}}]
}, Open ]],
Cell[CellGroupData[{
Cell[TextData[StyleBox["U\[CHacek]en\[IAcute] RBF s\[IAcute]t\[EHacek]",
FontWeight->"Bold"]], "Section",
CellChangeTimes->{{3.507363963934553*^9, 3.507363968614147*^9}, {
3.5091845043382635`*^9, 3.509184508578802*^9}}],
Cell["\<\
Tato jednoduch\[AAcute] data budeme cht\[IAcute]t klasifikovat pomoc\[IAcute] \
RBF s\[IAcute]t\[EHacek] s jedn\[IAcute]m RBF neuronem, dv\[EHacek]ma vstupy \
a dv\[EHacek]ma v\[YAcute]stupy.
Vytvo\[RHacek]\[IAcute]me RBF s\[IAcute]\[THacek] podle popisu v\[YAcute]\
\[SHacek]e.\
\>", "Text",
CellChangeTimes->{{3.507364306112504*^9, 3.5073643547376785`*^9}, {
3.50736439199541*^9, 3.507364483879078*^9}, {3.5073675354855824`*^9,
3.5073675413523273`*^9}, 3.5073821199755774`*^9, {3.507382157226308*^9,
3.5073821575873537`*^9}, {3.509184558199103*^9, 3.509184568014349*^9}, {
3.509184612875046*^9, 3.5091846397659607`*^9}, {3.509191103275722*^9,
3.509191115018713*^9}, {3.5091911934891777`*^9, 3.5091912007325974`*^9}, {
3.509191231249973*^9, 3.509191234974946*^9}}],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"net", "=",
RowBox[{"InitializeRBFNet", "[",
RowBox[{"inData", ",", "outData", ",", "1", ",", " ",
RowBox[{"OutputNonlinearity", "\[Rule]", "Sigmoid"}], ",",
RowBox[{"LinearPart", "\[Rule]", "False"}], ",",
RowBox[{"RandomInitialization", "\[Rule]", "True"}]}], "]"}]}]], "Input",
CellChangeTimes->{{3.509191256344159*^9, 3.509191261831356*^9}, {
3.5091913993403177`*^9, 3.509191400535469*^9}, {3.509191482896428*^9,
3.5091914836660256`*^9}, {3.50919160095642*^9, 3.509191643892872*^9},
3.50919204542586*^9, 3.5091921442304068`*^9, {3.5091922167601166`*^9,
3.5091923367058477`*^9}, {3.5091925903585577`*^9,
3.5091926076887584`*^9}, {3.509192642242646*^9, 3.5091926530785217`*^9}, {
3.509193000722167*^9, 3.509193011669057*^9}, {3.50920564006566*^9,
3.509205640229181*^9}, {3.5092058818638644`*^9, 3.5092058963987103`*^9}, {
3.50920757424677*^9, 3.5092075777207108`*^9}, {3.5092779277214518`*^9,
3.509277942343134*^9}, {3.509277987308288*^9, 3.509277988532878*^9}, {
3.5092786715824833`*^9, 3.5092786771222887`*^9}}],
Cell[BoxData[
TagBox[
TagBox[
RowBox[{"RBFNet", "[",
RowBox[{
RowBox[{"{",
RowBox[{"{",
RowBox[{"w1", ",", " ", "\[Lambda]", ",", " ", "w2"}], "}"}], "}"}],
",",
RowBox[{"{",
RowBox[{
RowBox[{"Neuron", " ", "\[Rule]", " ", "Exp"}], ",", " ",
RowBox[{"FixedParameters", " ", "\[Rule]", " ", "None"}], ",", " ",
RowBox[{"AccumulatedIterations", " ", "\[Rule]", " ", "0"}], ",", " ",
RowBox[{"CreationDate", " ", "\[Rule]", " ",
RowBox[{"{",
RowBox[{
"2011", ",", " ", "5", ",", " ", "23", ",", " ", "0", ",", " ", "7",
",", " ", "56.9198367`9.507838481864447"}], "}"}]}], ",", " ",
RowBox[{"OutputNonlinearity", " ", "\[Rule]", " ", "Sigmoid"}], ",",
" ",
RowBox[{"NumberOfInputs", " ", "\[Rule]", " ", "2"}]}], "}"}]}], "]"}],
Null,
Editable->False],
DisplayForm]], "Output",
CellChangeTimes->{3.509615609045843*^9, 3.5097324159175787`*^9,
3.515090876921837*^9}]
}, Open ]],
Cell["\<\
Zobraz\[IAcute]me si informace o s\[IAcute]t\[IAcute]. T\[IAcute]m se ujist\
\[IAcute]me \[ZHacek]e s\[IAcute]\[THacek] je opravdu takov\[AAcute] jakou \
jsme cht\[EHacek]li.\
\>", "Text",
CellChangeTimes->{{3.5091916569450293`*^9, 3.509191694743829*^9}}],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"NetInformation", "[", "net", "]"}]], "Input",
CellChangeTimes->{{3.509191700853605*^9, 3.5091917111199083`*^9}}],
Cell[BoxData["\<\"Radial Basis Function network. Created 2011-5-23 at 0:07. \
The network has 2 inputs and 2 outputs. It consists of 1 basis function of \
Exp type. There is a nonlinearity at the output of type Sigmoid.\"\>"], \
"Output",
CellChangeTimes->{3.509615612045724*^9, 3.509732415958084*^9,
3.5150908769368377`*^9}]
}, Open ]],
Cell["\<\
Nau\[CHacek]\[IAcute]me vytvo\[RHacek]enou s\[IAcute]\[THacek] na \
na\[SHacek]ich datech.\
\>", "Text",
CellChangeTimes->{{3.509193140000353*^9, 3.5091931557753563`*^9},
3.509193215716468*^9}],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{
RowBox[{
RowBox[{"{",
RowBox[{"net2", ",", "record"}], "}"}], "=",
RowBox[{"NeuralFit", "[",
RowBox[{"net", ",", "inData", ",", "outData", ",", "20"}], "]"}]}],
";"}]], "Input",
CellChangeTimes->{{3.402214100997976*^9, 3.402214109762068*^9}, {
3.402214234036181*^9, 3.402214235441436*^9}, {3.402214368377231*^9,
3.402214374682622*^9}, {3.402214419526277*^9, 3.402214425215911*^9}, {
3.402214664776315*^9, 3.402210056905657*^9}, {3.5091933458404913`*^9,
3.5091933777705464`*^9}}],
Cell[BoxData[
GraphicsBox[{{}, {},
{Hue[0.67, 0.6, 0.6], LineBox[CompressedData["
1:eJxTTMoPSmViYGAQBWIQDQOfuQ4cjPB7YA/hfbBfNueZkqnMTSifwaFC/sMv
u+M3oHwOh+4At0bpDTC+gAPjk4sFklUwvoiDfKGc8Z2316F8CYcF23fMurb4
GpQv49C6hm9jfMgVKF/BYZog59abJy5D+UoOpU+O295YCuOrOBzewWfs1Q/j
qzlYc/xK/pMP42s4aLneddsUBuNrORxvnH+qxBzG13F4KzAv/4IijK/n8IJp
3YZ3zDC+gcNiGc893q8vQfmGDn6cnon252B8IwcGUcFLbTthfGMHzs3NhS/m
wPgmDtMTTLbtb7lkDwDe/17+
"]]}},
AspectRatio->NCache[GoldenRatio^(-1), 0.6180339887498948],
AxesOrigin->{0, 0.29},
Frame->True,
FrameLabel->{
FormBox["\"Iterations\"", TraditionalForm], None},
FrameTicks->{{{0,
FormBox["0", TraditionalForm]}, {2,
FormBox["2", TraditionalForm]}, {4,
FormBox["4", TraditionalForm]}, {6,
FormBox["6", TraditionalForm]}, {8,
FormBox["8", TraditionalForm]}, {10,
FormBox["10", TraditionalForm]}, {12,
FormBox["12", TraditionalForm]}, {14,
FormBox["14", TraditionalForm]}, {16,
FormBox["16", TraditionalForm]}, {18,
FormBox["18", TraditionalForm]}, {20,
FormBox["20", TraditionalForm]}}, Automatic, None, None},
PlotLabel->FormBox["\"RMSE\"", TraditionalForm],
PlotRange->{All, All},
PlotRangeClipping->True,
PlotRangePadding->{Automatic, Automatic}]], "Print",
CellChangeTimes->{3.509732416921206*^9, 3.515090877529872*^9}]
}, Open ]],
Cell["\<\
Pod\[IAcute]vejme se jak na\[SHacek]e s\[IAcute]\[THacek] klasifikuje data. \
\>", "Text",
CellChangeTimes->{{3.509193868514863*^9, 3.509193933344595*^9}, {
3.509199332720729*^9, 3.509199338327941*^9}, {3.5091997539452176`*^9,
3.50919978396653*^9}, 3.5092070083589115`*^9}],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"NetPlot", "[",
RowBox[{"net2", ",", "inData", ",", "outData", ",", " ",
RowBox[{"DataFormat", "\[Rule]", "Classifier"}]}], "]"}]], "Input",
CellChangeTimes->{{3.5091936830138073`*^9, 3.5091937219742546`*^9}}],
Cell[BoxData[
GraphicsBox[{GraphicsComplexBox[CompressedData["
1:eJxl2HlUjvk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