-
Notifications
You must be signed in to change notification settings - Fork 3
/
How AI works.srt
2165 lines (1625 loc) · 42.8 KB
/
How AI works.srt
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
1
00:00:00,266 --> 00:00:03,099
Some time ago AI painting kept appearing in my dynamic
2
00:00:03,100 --> 00:00:04,866
Also repeatedly on the bilibili popular
3
00:00:05,133 --> 00:00:07,766
Some think AI will help humans become more efficient
4
00:00:07,900 --> 00:00:09,866
Some people think AI is plagiarism
5
00:00:10,166 --> 00:00:12,533
Some people think AI will replace all walks of life
6
00:00:13,033 --> 00:00:14,866
How AI really works
7
00:00:15,066 --> 00:00:16,166
To explain this problem
8
00:00:16,166 --> 00:00:18,199
I Wrote and open-sourced a simple neural network example of about 100 lines of code
9
00:00:18,200 --> 00:00:21,700
without using a third-party framework
10
00:00:21,700 --> 00:00:23,733
Let's take a look, together, at the inner workings of AI
11
00:00:24,100 --> 00:00:27,833
I'll start by explaining the principles of neural networks in as zero-basic and no-barrier a way as possible
12
00:00:28,166 --> 00:00:31,066
and then form a general impression of the principle of ai painting
13
00:00:31,866 --> 00:00:34,866
First I need to reintroduce the mathematical functions
14
00:00:35,233 --> 00:00:36,733
Maybe it's a little bit long and uninteresting
15
00:00:36,933 --> 00:00:38,666
Viewers can speed up or skip
16
00:00:38,733 --> 00:00:40,733
Using the video subsection title to jump would be better
17
00:00:42,433 --> 00:00:44,699
y=x+1 is a very simple function
18
00:00:44,900 --> 00:00:46,966
The shape is a line with a slope of 1
19
00:00:47,700 --> 00:00:49,966
where x is the input, y is the output
20
00:00:50,633 --> 00:00:52,066
Given any value of x
21
00:00:52,066 --> 00:00:53,666
y will be the value added one
22
00:00:54,466 --> 00:00:56,433
The function is also often written as f(x)=x+1
23
00:00:58,100 --> 00:00:59,333
The parameters are in parentheses
24
00:00:59,533 --> 00:01:01,933
f can refer to the effect on the input parameters
25
00:01:02,433 --> 00:01:04,433
Bringing in x gives an output result
26
00:01:04,866 --> 00:01:07,666
We may often encounter problems like this in school
27
00:01:08,166 --> 00:01:09,566
A water tank is draining
28
00:01:10,066 --> 00:01:11,533
The total amount of water is 100 liters
29
00:01:11,900 --> 00:01:13,566
The rate of water discharge is 4 liters per second
30
00:01:13,766 --> 00:01:15,566
Ask how much water is left after x seconds
31
00:01:16,533 --> 00:01:19,599
So we list y = 100 - 4*x (0<=x<=25),
32
00:01:19,600 --> 00:01:21,533
where x is the time consumed
33
00:01:21,933 --> 00:01:24,533
and y is a "predicted" output for the remaining water
34
00:01:24,766 --> 00:01:27,566
We can give real meaning to the input and output parameters of the function
35
00:01:27,566 --> 00:01:29,166
thus solving realistic problems
36
00:01:29,333 --> 00:01:31,799
A complex problem may have many parameters
37
00:01:31,800 --> 00:01:39,466
We can write this as f(x1,x2,x3) = x1 + 3*x2 + 4*x3^2
38
00:01:39,733 --> 00:01:41,566
Whether it's text, image, audio
39
00:01:41,900 --> 00:01:44,033
These can be converted to data storage
40
00:01:44,200 --> 00:01:46,266
All data can be used as arguments to the function
41
00:01:46,266 --> 00:01:47,299
Get an output
42
00:01:47,533 --> 00:01:50,233
For example, we want to make a simple numeric discriminant function
43
00:01:50,600 --> 00:01:52,266
Pass in a three-by-three matrix
44
00:01:52,533 --> 00:01:54,433
You can also think of it as an image
45
00:01:54,966 --> 00:01:57,433
Assuming that its shape must be a valid number
46
00:01:57,566 --> 00:02:00,066
We are asked to determine if the shape is the number 1
47
00:02:00,500 --> 00:02:01,833
Because there are only nine squares
48
00:02:01,933 --> 00:02:04,766
There are only 0,1,4,7 numbers that can be accommodated
49
00:02:05,333 --> 00:02:07,333
We note that with the matrix
50
00:02:07,333 --> 00:02:09,133
0,4 is written in only one way
51
00:02:09,266 --> 00:02:12,199
7 is written in 7 ways, while 1 is written in 9 ways
52
00:02:12,333 --> 00:02:14,599
We can of course determine each of these ways of writing
53
00:02:14,666 --> 00:02:17,133
Only 1 needs to be checked for these nine cases
54
00:02:17,800 --> 00:02:19,400
But there is a pattern here
55
00:02:19,666 --> 00:02:20,466
For example
56
00:02:20,466 --> 00:02:23,233
The shape of a 1 always takes up only two or three pixels
57
00:02:23,700 --> 00:02:24,800
For this condition
58
00:02:24,800 --> 00:02:26,866
We can filter out many other numbers
59
00:02:27,200 --> 00:02:29,333
There are only four ways to write 7 left to compete with us
60
00:02:30,100 --> 00:02:33,100
And the way 7 is written, there must be a middle column involved
61
00:02:33,300 --> 00:02:35,066
And when 1 takes up three pixels
62
00:02:35,066 --> 00:02:37,033
There is only one way to write that takes up the middle column
63
00:02:37,033 --> 00:02:37,899
and is full
64
00:02:38,600 --> 00:02:45,033
We can start by counting the total number of occupied pixels, y1=x1+x2+x3.... .x9
65
00:02:45,533 --> 00:02:47,299
Here a coefficient matrix is hidden
66
00:02:48,333 --> 00:02:49,766
We can construct another matrix
67
00:02:50,133 --> 00:02:51,666
Detecting the occupation of the middle column
68
00:02:52,466 --> 00:02:56,399
Written as a function is y2=x2+x5+x8
69
00:02:57,033 --> 00:02:58,566
Combining these two conditions
70
00:02:58,566 --> 00:03:00,299
That is, y1(total) = 2
71
00:03:00,300 --> 00:03:03,066
or when y1=3 and y2(middle column)=3 or 0
72
00:03:03,233 --> 00:03:04,533
represents the shape of the number 1
73
00:03:05,133 --> 00:03:05,933
For this description
74
00:03:05,933 --> 00:03:07,599
We can still list a function
75
00:03:07,666 --> 00:03:10,433
If z=0, then that means the condition is met
76
00:03:10,666 --> 00:03:12,366
The shape is the number 1
77
00:03:12,366 --> 00:03:14,266
The 3D shape of z looks like this
78
00:03:14,600 --> 00:03:17,166
You can see that this function is in scope
79
00:03:17,233 --> 00:03:19,399
There are some intersections with the z=0 plane
80
00:03:19,400 --> 00:03:21,533
i.e. the conditions just mentioned for y1,y2
81
00:03:21,766 --> 00:03:23,966
where the line of the intersection of the two points of y1=2
82
00:03:24,133 --> 00:03:25,299
All met with our conditions
83
00:03:25,466 --> 00:03:29,366
i.e. y1=2, or y1=3 and y2=3 or 0
84
00:03:29,666 --> 00:03:31,366
We can also bring y1,y2 into
85
00:03:31,366 --> 00:03:35,399
We end up with a complex relationship between z and x1,x2,... .x9
86
00:03:36,666 --> 00:03:39,199
This is an example of a realistic problem expressed as a function
87
00:03:39,400 --> 00:03:41,433
Used to make a category determination on an image
88
00:03:41,700 --> 00:03:44,266
As we said before, whether it's text, image
89
00:03:44,266 --> 00:03:44,999
Audio
90
00:03:45,233 --> 00:03:47,199
These can be converted to data storage
91
00:03:47,400 --> 00:03:48,866
All of these can be used as function parameters
92
00:03:49,466 --> 00:03:51,066
It is also possible to output according to our target
93
00:03:51,066 --> 00:03:52,133
Analyze a set of laws
94
00:03:52,133 --> 00:03:53,099
A relational equation
95
00:03:53,500 --> 00:03:56,433
For this previous problem we know the result
96
00:03:56,500 --> 00:03:57,933
Of course we can write it
97
00:03:57,933 --> 00:04:00,833
Draw it directly, but in reality the problem is very complicated
98
00:04:01,033 --> 00:04:03,033
We can hardly calculate the result manually
99
00:04:03,166 --> 00:04:06,333
So a relatively general neural network model structure needs to be designed
100
00:04:06,600 --> 00:04:09,466
This unknown result is obtained by training and adjusting the parameters
101
00:04:10,100 --> 00:04:12,700
We can draw the two functions y1,y2 as a mesh
102
00:04:12,700 --> 00:04:13,700
Two layers are formed
103
00:04:14,266 --> 00:04:16,799
The first layer is the input, which is a three-by-three image matrix
104
00:04:17,233 --> 00:04:18,433
The second layer is the processing
105
00:04:18,466 --> 00:04:20,299
In a neural network it is called the hidden layer
106
00:04:20,666 --> 00:04:23,099
In fact, hidden layers can also have a multi-layer recursive structure
107
00:04:23,300 --> 00:04:25,233
to better fit more complex cases
108
00:04:25,400 --> 00:04:27,000
It's not just one column like this
109
00:04:27,200 --> 00:04:30,433
But our current problem uses only one column
(A single hidden layer can theoretically fit any function, but multiple layers perform better)
110
00:04:30,433 --> 00:04:31,333
Here one by one cells
111
00:04:31,333 --> 00:04:32,933
is the neuron in the neural network
112
00:04:33,333 --> 00:04:34,399
Connections between neurons
113
00:04:34,400 --> 00:04:36,066
is the coefficient matrix mentioned earlier
114
00:04:36,100 --> 00:04:37,233
Here it is called the weights
115
00:04:38,000 --> 00:04:39,933
The missing third layer here, is the output
116
00:04:40,266 --> 00:04:42,666
We want to aggregate the results of the hidden layer to the output layer
117
00:04:42,833 --> 00:04:45,533
The final output is the target we want the neural network to predict
118
00:04:46,600 --> 00:04:49,033
Here, it's the z function that was mentioned earlier
119
00:04:49,900 --> 00:04:51,566
Of course, the way we've drawn it so far
120
00:04:51,633 --> 00:04:52,533
You will find
121
00:04:52,600 --> 00:04:57,733
This "neural network" can only express like y=ax1+bx2+cx3 in the form
122
00:04:58,266 --> 00:05:00,699
With one parameter, it is a straight line in two dimensions
123
00:05:01,033 --> 00:05:03,399
With two parameters, it is a plane in three-dimensional space
124
00:05:03,666 --> 00:05:05,833
In short, it is linear, it is "straight"
125
00:05:06,366 --> 00:05:08,566
And the expression for z that we were going to get earlier
126
00:05:08,666 --> 00:05:10,766
The drawing is a surface in 3D space
127
00:05:11,333 --> 00:05:13,866
We can't express the surface through this network now
128
00:05:14,066 --> 00:05:15,200
But we can switch our thinking
129
00:05:15,200 --> 00:05:17,866
Breaking down our goal into "straight" pieces
130
00:05:18,100 --> 00:05:20,600
and then combine them into the curves, surfaces we need
131
00:05:20,600 --> 00:05:23,000
or other non-"straight" targets in higher dimensions
132
00:05:23,700 --> 00:05:24,533
To achieve this
133
00:05:24,533 --> 00:05:26,133
We need to use the activation function
134
00:05:26,600 --> 00:05:27,733
Examples of common activation functions
135
00:05:27,733 --> 00:05:30,300
sigmoid, the mathematical expression looks like this
136
00:05:30,833 --> 00:05:32,333
The shape is like this
137
00:05:33,300 --> 00:05:36,833
Activation functions like sigmoid make an otherwise linear function nonlinear
138
00:05:37,033 --> 00:05:38,500
Eventually we can do this for various inputs
139
00:05:38,500 --> 00:05:42,266
By simply adding and multiplying the coefficients that worked in the previous neural network
140
00:05:42,266 --> 00:05:44,800
Combining segments, fitting arbitrary continuous curves
141
00:05:44,800 --> 00:05:46,200
Expresses an arbitrary function
142
00:05:46,666 --> 00:05:48,266
As long as your input and output targets
143
00:05:48,266 --> 00:05:50,900
There exists the possibility of logical functional expression
144
00:05:51,100 --> 00:05:52,566
so it can be written in functional form
145
00:05:52,800 --> 00:05:55,233
We then achieve a mathematical expression for the specific problem
146
00:05:56,533 --> 00:05:57,266
So far
147
00:05:57,266 --> 00:06:00,500
We know that the actual problem can be transformed into a fixed form of mathematical equations
148
00:06:00,733 --> 00:06:02,833
This neural network structure can be used to infer
149
00:06:03,166 --> 00:06:04,800
This process is called forward propagation
150
00:06:05,000 --> 00:06:07,666
However, in our previous numerical discrimination problem
151
00:06:07,666 --> 00:06:09,500
Each formula is calculated manually
152
00:06:09,500 --> 00:06:11,600
If the individual constants in the previous calculation equation
153
00:06:11,700 --> 00:06:14,733
that is, the connection parameters (weights) between the neurons in the neural network,
154
00:06:14,733 --> 00:06:16,333
We can get the computer to compute
155
00:06:16,333 --> 00:06:18,966
so that we can have an artificial intelligence that can automatically reason about a particular problem
156
00:06:20,000 --> 00:06:22,066
We can start by having the individual weights randomly generated
157
00:06:22,766 --> 00:06:24,166
and then perform a simple test
158
00:06:24,166 --> 00:06:25,500
Look at the incoming input data
159
00:06:25,600 --> 00:06:27,600
Whether the output is what we want
160
00:06:28,200 --> 00:06:29,966
This result is called a prediction,
161
00:06:29,966 --> 00:06:31,133
The abbreviation is pred
162
00:06:31,933 --> 00:06:33,266
If it's not what we want
163
00:06:33,366 --> 00:06:35,633
We can see how much it differs from the result we want
164
00:06:36,166 --> 00:06:37,966
The result we want is the true result
165
00:06:38,233 --> 00:06:39,966
Write true, or target,
166
00:06:39,966 --> 00:06:43,633
Here you can use, for example, the mean squared error (mse) to measure the difference with the target
167
00:06:44,233 --> 00:06:47,200
where this symbol is read as sigma, which means summation
168
00:06:47,333 --> 00:06:48,466
Add from 1 to n
169
00:06:49,100 --> 00:06:51,000
Because we'll have a bunch of inputs and outputs
170
00:06:51,033 --> 00:06:52,466
To measure the overall difference
171
00:06:53,033 --> 00:06:54,500
This calculation is also well understood
172
00:06:54,666 --> 00:06:56,666
To measure the difference we naturally think of subtraction
173
00:06:56,933 --> 00:06:58,633
And there is no positive or negative difference
174
00:06:58,733 --> 00:07:00,666
So we eliminate the negative sign by squaring
175
00:07:00,733 --> 00:07:02,933
Then we sum and average to get the error
176
00:07:03,166 --> 00:07:04,500
Use the square instead of the absolute value
177
00:07:04,500 --> 00:07:05,900
Mainly for ease of derivation
178
00:07:06,066 --> 00:07:09,033
And if the error is large (greater than 1) the square can also amplify the difference
179
00:07:09,033 --> 00:07:12,100
Increase the adjustment. What is about the derivative?
180
00:07:12,100 --> 00:07:13,000
Why Derivative?
181
00:07:13,266 --> 00:07:15,633
And how the weights are adjusted will be explained later
182
00:07:16,833 --> 00:07:18,600
In summary, this function for measuring differences
183
00:07:18,733 --> 00:07:20,300
We call it the loss function,
184
00:07:20,833 --> 00:07:22,533
indicates the current effect compared to the target
185
00:07:22,533 --> 00:07:24,966
How much risk, how much loss
186
00:07:24,966 --> 00:07:26,566
We want its value to be as small as possible
187
00:07:26,766 --> 00:07:28,433
means as close to the target as possible
188
00:07:28,966 --> 00:07:30,566
e.g., yes/no
189
00:07:30,766 --> 00:07:35,099
can be expressed as 1,0, if the AI calculates the result as 0.9
190
00:07:35,300 --> 00:07:37,000
Although not exactly what we were aiming for
191
00:07:37,133 --> 00:07:39,300
But when the result is only two possible
192
00:07:39,333 --> 00:07:41,200
0.9 is close to "yes"
193
00:07:41,466 --> 00:07:43,266
The loss function results will be small
194
00:07:43,300 --> 00:07:44,866
meaning that we are close to the target
195
00:07:45,100 --> 00:07:47,100
So, next, what we're going to do
196
00:07:47,100 --> 00:07:49,500
is to adjust the previously randomly generated weights
197
00:07:49,566 --> 00:07:52,466
and calculating the loss function, to keep reducing the loss
198
00:07:53,433 --> 00:07:55,466
aimless randomness obviously doesn't work
199
00:07:55,600 --> 00:07:57,766
The number of participants for many real-world problems is very large
200
00:07:57,833 --> 00:07:59,466
We need a reliable method
201
00:08:00,500 --> 00:08:02,833
Starting through partial derivatives is a common method
202
00:08:03,333 --> 00:08:04,633
What is a partial derivative?
203
00:08:05,000 --> 00:08:06,666
First, a line in the two-dimensional plane
204
00:08:06,666 --> 00:08:08,966
We know that there is a slope to describe the degree of tilt
205
00:08:09,333 --> 00:08:10,400
If it is a curve
206
00:08:10,466 --> 00:08:12,866
then the slope of the curve is different at different positions
207
00:08:13,266 --> 00:08:14,933
We do this by taking the derivative at a particular position
208
00:08:14,933 --> 00:08:16,000
to calculate the slope
209
00:08:16,466 --> 00:08:18,300
The derivative is the slope at a specific position
210
00:08:20,000 --> 00:08:22,200
There are a series of mathematical methods/formulas for finding the derivative
211
00:08:22,200 --> 00:08:23,433
But not the point here
212
00:08:24,100 --> 00:08:25,666
And if the number of parameters increases
213
00:08:25,733 --> 00:08:27,166
For example to the three-dimensional space
214
00:08:27,466 --> 00:08:29,100
A point on the surface has many tangents
215
00:08:29,100 --> 00:08:30,633
There are many different cases of "slope",
216
00:08:30,833 --> 00:08:33,433
We fix a surface, forming a plane curve
217
00:08:33,733 --> 00:08:36,000
Treating all the other variables as constants
218
00:08:36,233 --> 00:08:38,133
Then derive the only parameter at this point
219
00:08:38,133 --> 00:08:39,133
is the partial derivative
220
00:08:39,433 --> 00:08:41,233
With partial derivative/slope
221
00:08:41,333 --> 00:08:42,466
What can be done about it?
222
00:08:42,866 --> 00:08:43,833
In a neural network
223
00:08:43,866 --> 00:08:45,533
We substitute the individual equations layer by layer
224
00:08:45,533 --> 00:08:47,466
We can get a prediction and input
225
00:08:47,466 --> 00:08:48,733
and the relationship equation for the weights
226
00:08:49,433 --> 00:08:51,200
The prediction results are substituted into the loss function
227
00:08:51,266 --> 00:08:53,466
Again, we can get the loss function with their relationship equation
228
00:08:53,733 --> 00:08:58,200
We can abbreviate the loss function versus the weights as L(w1,w2,...) ,
229
00:08:58,200 --> 00:08:59,833
w is the abbreviation for weightweight
230
00:09:00,533 --> 00:09:02,433
The actual meaning of slope is the speed of change
231
00:09:02,800 --> 00:09:06,100
If we find the partial derivative of each weight variable for the loss function
232
00:09:06,266 --> 00:09:07,066
then we can measure
233
00:09:07,066 --> 00:09:10,033
The effect of the individual weights on the rate of change of the loss function
234
00:09:10,466 --> 00:09:13,233
If a weight variable poses a drastic effect on the loss function
235
00:09:13,600 --> 00:09:14,800
The value of the bias is large
236
00:09:14,933 --> 00:09:18,700
We then know that fluctuations in this weight can easily cause fluctuations in the predicted results
237
00:09:19,800 --> 00:09:20,900
For example, an image
238
00:09:21,000 --> 00:09:24,433
The color of just one pixel changes due to weight fluctuations
239
00:09:24,466 --> 00:09:27,233
This causes the neural network to predict a dog as a cat (with fluctuating results),
240
00:09:27,233 --> 00:09:28,533
This is clearly not reasonable
241
00:09:29,100 --> 00:09:32,200
This weighting variable is largely responsible for the failure of the neural network's predictions
242
00:09:32,266 --> 00:09:32,900
In other words
243
00:09:32,900 --> 00:09:35,200
We need to adjust the weights, reduce its interference
244
00:09:36,300 --> 00:09:38,533
The way to adjust it, you can just do a simple subtraction
245
00:09:38,766 --> 00:09:40,666
For example, if the weight is 1, the derivative is 10
246
00:09:41,333 --> 00:09:44,200
Direct 1-0.01*10 to get 0.9
247
00:09:44,766 --> 00:09:46,400
By looking at the image we can find
248
00:09:46,400 --> 00:09:48,466
The value of the loss function goes in the lower direction
249
00:09:48,666 --> 00:09:51,100
where 0.01 is the factor by which we fine-tune the weights
250
00:09:51,500 --> 00:09:52,500
Called learning rate