1
00:00:00,680 --> 00:00:01,030
Hello.

2
00:00:01,040 --> 00:00:01,640
Welcome back.

3
00:00:01,640 --> 00:00:07,130
In this lesson we are going to write a new function known as the logistic regression model and this

4
00:00:07,130 --> 00:00:10,960
function is going to encapsulate the other functions we've written.

5
00:00:11,000 --> 00:00:17,090
We're going to pass our training image our test image the training and test labels as well as things

6
00:00:17,090 --> 00:00:24,500
like a lending rate a number of iterations and this function is going to train the entire model and

7
00:00:24,500 --> 00:00:32,800
then uh give us the m the the the resort for both the train inaccuracy and the test accuracy.

8
00:00:32,810 --> 00:00:35,980
So we're gonna construct such a function in this lesson.

9
00:00:35,990 --> 00:00:38,020
I'm gonna save this.

10
00:00:39,800 --> 00:00:50,120
I call this number seven and then I'll come down here to write a new function def or call this

11
00:00:53,550 --> 00:01:02,280
log write model in the first document is going to be the X train the next document is gonna be the Y

12
00:01:02,560 --> 00:01:14,520
train training labels and then the test data x test then the labels for the test y test and then number

13
00:01:14,520 --> 00:01:15,510
of iterations

14
00:01:20,220 --> 00:01:28,050
we can set a default at 1000 all those that you I want something else and then lending rate

15
00:01:34,450 --> 00:01:37,750
set a default to zero point four.

16
00:01:38,620 --> 00:01:40,870
Yeah I think we have enough.

17
00:01:40,870 --> 00:01:46,920
So we have this new function log rack Model X train y train okay.

18
00:01:47,440 --> 00:01:48,360
So yeah.

19
00:01:52,120 --> 00:01:56,640
Kristin let's see what we have from this end.

20
00:01:57,180 --> 00:01:57,460
Okay

21
00:02:04,890 --> 00:02:09,270
sorry go the.

22
00:02:10,440 --> 00:02:12,720
Okay I'm going to create some space here.

23
00:02:12,900 --> 00:02:13,650
I don't like this

24
00:02:16,410 --> 00:02:23,940
Okay so we start off by initializing a war weight and bias.

25
00:02:23,940 --> 00:02:28,550
So we call our weight and by his function our initialize function.

26
00:02:28,550 --> 00:02:35,480
So when I say WB the return is going to be stored in W and B and I'll call the function which is initialize

27
00:02:35,490 --> 00:02:36,040
zeros

28
00:02:38,980 --> 00:02:40,410
let's see over here

29
00:02:44,320 --> 00:02:52,570
and then what I want to do is say X strain does the dimension extra in does shape index zero.

30
00:02:52,770 --> 00:02:54,930
Right.

31
00:02:55,060 --> 00:03:01,570
Once that is done we're gonna perform the gradient descent by calling we'll learn our land function

32
00:03:01,960 --> 00:03:08,230
and we're going to store the remember our land function returns parameters gradient and cost.

33
00:03:08,380 --> 00:03:18,590
So I'm gonna come over here and see parameters s s s return value 1 or return variable 1 parameters.

34
00:03:18,610 --> 00:03:29,350
We're going to have gradient gonna have costs and the name of the function is learn and then we're going

35
00:03:29,350 --> 00:03:37,340
to pass the weight to bias as argument the training set the training label.

36
00:03:39,940 --> 00:03:48,300
Let's see what's left wage bias training set the training label a number of iterations Len Lenin rate.

37
00:03:48,320 --> 00:03:48,990
Okay.

38
00:04:01,590 --> 00:04:04,320
Number of iterations lending rate like this.

39
00:04:06,030 --> 00:04:18,330
Okay so after this we can we can retrieve the parameters W M B from the dictionary from the remember.

40
00:04:19,500 --> 00:04:25,870
Um this is Paramus is a dictionary we're going to have to be and be stored in it.

41
00:04:26,070 --> 00:04:27,280
Right.

42
00:04:27,720 --> 00:04:31,560
I'm gonna come down here because we need and for further computation.

43
00:04:31,560 --> 00:04:39,330
So I'll see w e course firearms all over here we stored it in a new word court parameters I'll copy

44
00:04:39,330 --> 00:04:55,440
this then I'll pass stop you in here and then B equals parameters I'll pass be here right.

45
00:04:55,440 --> 00:05:02,670
Once that is done we can call our predict function and then I'm gonna see a y y prediction

46
00:05:07,980 --> 00:05:22,740
y prediction for test set equals predict and then this takes the view B and then the data is X test

47
00:05:23,250 --> 00:05:37,410
the test set we're gonna do y prediction for train and then this we see it predict of course stop you.

48
00:05:37,430 --> 00:05:46,470
B X and then crane and then once we've done this we can go and print the resort

49
00:06:52,610 --> 00:06:59,470
we can print the um the test accuracy and the training accuracy during the process.

50
00:06:59,630 --> 00:07:02,940
So I'm gonna come down here.

51
00:07:02,940 --> 00:07:09,890
I simply say print and then I'll say test accuracy

52
00:07:14,090 --> 00:07:26,210
and I'm gonna do this or do this I'm gonna format it's a bit we're going to print the mean so I'll come

53
00:07:26,210 --> 00:07:38,420
here and say that's for months and then one hundred minus and Peter to me and then and Peter it's absolute

54
00:07:38,420 --> 00:07:41,410
value.

55
00:07:41,780 --> 00:07:48,920
We're going to basically subtract the m the y hat which is the predicted value from the expected value

56
00:07:48,980 --> 00:08:00,650
which is y and then yeah and then we multiply by one hundred and all of that subtracted from one hundred.

57
00:08:01,220 --> 00:08:02,600
I'm gonna say y prediction

58
00:08:07,480 --> 00:08:09,460
y prediction underscore

59
00:08:12,270 --> 00:08:23,430
test minus Y test and then I'm gonna come out here and then multiply this by one hundred

60
00:08:26,970 --> 00:08:29,610
mission.

61
00:08:30,520 --> 00:08:32,270
How many brackets do I have.

62
00:08:32,270 --> 00:08:33,480
I have three of them.

63
00:08:34,810 --> 00:08:35,590
Yeah.

64
00:08:37,230 --> 00:08:37,890
Right.

65
00:08:37,950 --> 00:08:41,350
So we're going to do the same for the M.

66
00:08:42,090 --> 00:08:44,640
Let's see what we have.

67
00:08:46,620 --> 00:08:49,130
Yeah we're gonna do the same for the test.

68
00:08:49,190 --> 00:08:50,420
Uh the training accuracy.

69
00:08:50,430 --> 00:08:55,330
This was for test accuracy.

70
00:08:55,790 --> 00:08:57,800
It would have to check for typos.

71
00:08:57,820 --> 00:09:03,970
We're not tested for a while.

72
00:09:04,220 --> 00:09:05,840
Okay so this is train

73
00:09:09,410 --> 00:09:11,420
and this is going to be this word here.

74
00:09:11,450 --> 00:09:14,980
It's going to be train and this as well.

75
00:09:17,850 --> 00:09:26,730
Right after we've done this we can return some information about our model such as the M that cost the

76
00:09:26,730 --> 00:09:29,370
Y prediction the D.

77
00:09:29,470 --> 00:09:36,090
Um yeah the train and test we can basically take some of the the results we get from this computation

78
00:09:36,090 --> 00:09:44,880
start in a dictionary to return so that we can have like the M what's the word we can have we can't

79
00:09:44,880 --> 00:09:47,330
have information about our model essentially.

80
00:09:47,580 --> 00:09:52,110
I don't want to say to them the parameters obviously we're going to sort of pretend the parameters as

81
00:09:52,110 --> 00:09:57,270
well but we can return things like the lending rate the number of iterations that y prediction test

82
00:09:57,540 --> 00:09:59,490
the Y training test et cetera.

83
00:09:59,580 --> 00:10:08,490
So when I have a dictionary here when I say d equals and then I'm going to return cost I'm gonna give

84
00:10:08,490 --> 00:10:15,810
it a label cost and this will return costs then I'm gonna say why predictions.

85
00:10:15,810 --> 00:10:23,390
We can analyze this later this is yeah why prediction test.

86
00:10:23,430 --> 00:10:26,550
And this of course is gonna be why prediction test

87
00:10:29,870 --> 00:10:41,170
and then we're going to have Y prediction Crane this is going to be my prediction train.

88
00:10:41,310 --> 00:10:44,300
We're going to have w.

89
00:10:44,410 --> 00:10:47,820
This would be w as well.

90
00:10:47,860 --> 00:10:52,550
Great to have B this would be B as well.

91
00:10:52,620 --> 00:10:55,210
Going to have a board lending rate

92
00:11:02,370 --> 00:11:05,830
this is going to be the lending rate.

93
00:11:06,980 --> 00:11:09,210
Then we're going to have a number of iterations

94
00:11:16,270 --> 00:11:19,340
it's gonna be a number of iterations.

95
00:11:19,690 --> 00:11:21,120
Right.

96
00:11:21,130 --> 00:11:21,480
Okay.

97
00:11:21,520 --> 00:11:24,160
So once we've done this we can return our dictionary

98
00:11:42,410 --> 00:11:44,150
rich and D.

99
00:11:44,230 --> 00:11:45,410
Like this.

100
00:11:45,430 --> 00:11:48,160
Okay so this is going to be our motto.

101
00:11:48,160 --> 00:11:50,030
This is going to create a model and B.

102
00:11:50,230 --> 00:11:56,710
And once it's done is gonna predict and then print out the test and create accuracies for us and we

103
00:11:56,710 --> 00:12:02,890
would have the characteristics of the model as well as its parameters stored in this dictionary court

104
00:12:02,950 --> 00:12:11,260
D which is going to be written for us so we can test it out by training our model um to try to model

105
00:12:11,290 --> 00:12:13,440
I'm going to come down here too.

106
00:12:13,520 --> 00:12:14,680
Yeah.

107
00:12:15,730 --> 00:12:16,810
I'm gonna come down here.

108
00:12:17,050 --> 00:12:19,350
So this is our pre processing code.

109
00:12:19,400 --> 00:12:21,210
Oh put comments here

110
00:12:30,310 --> 00:12:31,300
pre processing.

111
00:12:33,890 --> 00:12:37,770
And then decide here

112
00:12:42,170 --> 00:12:42,650
training.

113
00:12:44,260 --> 00:12:44,810
Okay.

114
00:12:44,870 --> 00:12:51,810
So I'm gonna say a d e course and then I'm simply going to call a function log rig model.

115
00:12:51,890 --> 00:12:57,330
I suspect we may have some typos because we've not tested for a while so kindly bear with me.

116
00:12:58,250 --> 00:13:00,920
And did um or parameters.

117
00:13:00,920 --> 00:13:03,270
The first one is train set.

118
00:13:03,630 --> 00:13:06,140
We're going to take train set X

119
00:13:12,460 --> 00:13:17,790
so before we can pass our data to our model we have to normalize it first.

120
00:13:17,800 --> 00:13:24,370
Remember we didn't perform normalization yet so to normalize we take the largest value in this set and

121
00:13:24,370 --> 00:13:26,770
then we divide each element by that value.

122
00:13:26,770 --> 00:13:31,060
So since it's an image the the largest value it's an 8 bit image.

123
00:13:31,060 --> 00:13:34,170
So the largest value is gonna be two hundred and fifty five.

124
00:13:34,240 --> 00:13:36,380
So we're going to divide everything by that.

125
00:13:36,400 --> 00:13:43,000
So I'm gonna create a new variable here or put a comment first.

126
00:13:43,870 --> 00:13:44,530
Normalize

127
00:13:47,810 --> 00:13:53,910
normalized data and I'm gonna create a verbal see a train set.

128
00:13:54,470 --> 00:13:55,700
X equals.

129
00:13:55,700 --> 00:14:04,370
I'm gonna take this this entire set and then I'm gonna divide by two forty five and then I'll see test

130
00:14:04,370 --> 00:14:06,090
set I'll do the same for test sets.

131
00:14:06,140 --> 00:14:12,260
We need not normalize the want D binary one in zero to tell us whether it's an E It's a cat or not a

132
00:14:12,260 --> 00:14:12,520
cat.

133
00:14:12,530 --> 00:14:14,390
We need not normalize the y values.

134
00:14:15,020 --> 00:14:15,270
Okay.

135
00:14:15,320 --> 00:14:25,570
So I see test set to set X and this equals test set to flatten divided by 245

136
00:14:29,330 --> 00:14:29,810
okay.

137
00:14:29,870 --> 00:14:38,690
So now over here in our functional model function we going to pass the um the normalized input.

138
00:14:40,040 --> 00:14:41,130
Yeah.

139
00:14:44,730 --> 00:14:48,050
So I'm gonna come here train set x.

140
00:14:48,810 --> 00:14:54,950
Copy this paste it Crane said why we have train set y somewhere.

141
00:14:55,020 --> 00:15:03,270
Copy this pasted over here to set x test.

142
00:15:03,270 --> 00:15:05,180
Copy this paste the Y here.

143
00:15:05,190 --> 00:15:09,380
Test set y.

144
00:15:11,180 --> 00:15:12,950
Paste this over here.

145
00:15:13,440 --> 00:15:15,000
And then a number of iterations

146
00:15:22,620 --> 00:15:27,300
I'm gonna set this to two thousand iterations Len and rate

147
00:15:32,650 --> 00:15:35,230
when I set it to zero point zero zero five.

148
00:15:36,750 --> 00:15:37,180
Yeah.

149
00:15:37,390 --> 00:15:38,810
So this is it.

150
00:15:38,920 --> 00:15:43,870
So let's inspect for typos before we build.

151
00:15:44,180 --> 00:15:52,850
Okay so um over here the first mission I saw is that we are using D.W. here but we've not extracted

152
00:15:52,850 --> 00:15:54,680
it from the dictionary.

153
00:15:54,680 --> 00:16:01,180
We have to remember it t w NDP were returned from the propagation function but they are kept in a dictionary.

154
00:16:01,190 --> 00:16:04,610
We need to pull them out before we can apply them here.

155
00:16:04,760 --> 00:16:08,300
So to do that we've got to sort of pull them out

156
00:16:11,410 --> 00:16:21,950
of CDW because the name of the dictionary is GRUNTS AND THEN WHAT I WANT IS D W and then I'm going to

157
00:16:21,950 --> 00:16:26,840
see a DP across the same dictionary Gratz

158
00:16:29,910 --> 00:16:31,530
DP like this.

159
00:16:31,530 --> 00:16:40,140
So now we've extracted them also in our predictive function here we would have to reshape the w the

160
00:16:40,140 --> 00:16:43,180
wait before we can compute the activation.

161
00:16:43,390 --> 00:16:48,450
So I'll come over here and see W equals w dot to reshape

162
00:16:55,490 --> 00:17:00,470
then I'm gonna say X top shape we're going to do index zero

163
00:17:04,180 --> 00:17:08,010
by one over here like this.

164
00:17:08,170 --> 00:17:08,540
Okay.

165
00:17:08,650 --> 00:17:13,950
Um lost track once more before we um would build.

166
00:17:13,950 --> 00:17:14,850
Um yeah.

167
00:17:14,860 --> 00:17:16,930
This function for instance.

168
00:17:17,920 --> 00:17:18,160
Yeah.

169
00:17:18,160 --> 00:17:21,000
The return here should not be in the for loop.

170
00:17:21,250 --> 00:17:25,420
So we've got to come out of the loop and then let's see.

171
00:17:25,780 --> 00:17:26,270
Okay.

172
00:17:26,270 --> 00:17:31,120
Looks good mm mm mm mm mm mm mm mm mm mm.

173
00:17:31,150 --> 00:17:32,090
This 0 function

174
00:17:36,150 --> 00:17:36,570
right.

175
00:17:36,580 --> 00:17:41,740
The error has to do with this the fourth argument in our function.

176
00:17:41,740 --> 00:17:45,320
Let's see the fourth argument is the whitest but.

177
00:17:45,560 --> 00:17:52,150
But over here I'm still send in train set to this word here should be test.

178
00:17:52,480 --> 00:17:56,260
So we have the crane and X the train and Y.

179
00:17:56,260 --> 00:18:04,540
The test x test y number of iterations we've set it to two thousand and then a lending rate of zero

180
00:18:04,540 --> 00:18:06,700
point zero five three pointers or five.

181
00:18:06,730 --> 00:18:13,010
Okay let's run and see if this works I'm gonna save right.

182
00:18:13,030 --> 00:18:14,070
It's working so.

183
00:18:15,700 --> 00:18:16,120
Okay.

184
00:18:16,120 --> 00:18:20,650
The error reduce and we've run this number of iterations so far.

185
00:18:20,650 --> 00:18:20,980
Right.

186
00:18:20,980 --> 00:18:24,280
And it s completes our test accuracy it says over here

187
00:18:29,100 --> 00:18:31,860
our test accuracy.

188
00:18:31,860 --> 00:18:32,590
Let me.

189
00:18:32,640 --> 00:18:34,800
Let me reshape this a bit for you

190
00:18:38,500 --> 00:18:43,510
our test accuracy is 70 percent and in the train accuracy is 99.

191
00:18:43,520 --> 00:18:46,200
So it is a bit of over fitting going on here.

192
00:18:46,410 --> 00:18:49,280
The um the difference between the two is too large but no problem.

193
00:18:49,290 --> 00:18:56,990
We're going to test with our own image and also we go into um later on we're going to develop a better

194
00:18:57,020 --> 00:18:58,000
neural network.

195
00:18:58,010 --> 00:19:03,920
Now we're using logistic regression is not the best way for doing this type of task later on we're going

196
00:19:03,920 --> 00:19:10,970
to see uh we went to first a four star have to lay a neural network and then we're going to increase

197
00:19:10,970 --> 00:19:17,750
with a deep neural network with multiple layers and then after that we're going to try using a convolution

198
00:19:17,750 --> 00:19:20,600
or neural network to see the results that we get.

199
00:19:20,600 --> 00:19:23,320
So this is the performance of our neural network.

200
00:19:23,360 --> 00:19:25,190
Right now we can increase the arm.

201
00:19:25,370 --> 00:19:28,350
We can learn to lend for a longer time.

202
00:19:28,370 --> 00:19:32,960
I'm going to increase number of iterations to three thousand and let's see what we get an improvement

203
00:19:33,500 --> 00:19:37,030
in the test accuracy.

204
00:19:37,240 --> 00:19:38,090
It's trained in

205
00:19:51,470 --> 00:19:54,780
okay it s it's become worse a problem.

206
00:19:54,810 --> 00:20:00,920
We're going to plot out plot out the graph and see the point at which it started moving from better

207
00:20:00,920 --> 00:20:01,520
to was.

208
00:20:01,790 --> 00:20:05,270
So now it's become 60 80 percent.

209
00:20:05,270 --> 00:20:12,670
Okay so I'm gonna go back to 2k right okay.

210
00:20:12,700 --> 00:20:17,830
Let's plot the um the cost us training and goes on let's see the graph.

211
00:20:17,830 --> 00:20:24,550
Let's see the performance um with this we can try to know at which point our neural network begun to

212
00:20:25,240 --> 00:20:33,960
um like the the part where we saw it move from 70 percent with two thousand iterations to 68 percent

213
00:20:33,970 --> 00:20:40,330
with two thousand words three thousand iterations we can see the graph and see that this number of iteration

214
00:20:40,330 --> 00:20:47,620
and gave us this amount of error and because of that we can decide on how much iteration we should apply

215
00:20:47,620 --> 00:20:50,940
to the model to give it the best that we can.

216
00:20:50,950 --> 00:20:54,380
Um if you don't understand all that I just said let's try it out.

217
00:20:54,490 --> 00:20:58,210
I'm gonna see costs cause I'm gonna squeeze this

218
00:21:05,520 --> 00:21:12,450
and then what I'm looking for is the dictionary we take in the cost from this and then we're going to

219
00:21:12,450 --> 00:21:22,410
plot this I'm gonna say P L T dot plot I want to plot cost I'm gonna add a bit of label to it I'm going

220
00:21:22,410 --> 00:21:33,070
to add a bit of labor to it Oh CPO t that's why label and the Y label is simply going to be cost and

221
00:21:33,070 --> 00:21:37,510
the X label is the iterations TLT dot X label

222
00:21:40,290 --> 00:21:40,840
and this is

223
00:21:43,280 --> 00:21:44,270
iterations

224
00:21:46,760 --> 00:21:53,360
and this is um per 50 50 yeah.

225
00:21:53,810 --> 00:22:01,550
So we said 50 we should print out the iterations we should collect it in 50 years let's see.

226
00:22:01,550 --> 00:22:02,290
We'll see about the

227
00:22:05,840 --> 00:22:12,370
we have to add to the piece of code to record the iteration every fiftieth iteration.

228
00:22:12,860 --> 00:22:21,080
I'm gonna come over here and I'll see if I modulo 50 equals zero

229
00:22:24,200 --> 00:22:33,620
then I want to record I seen costs cost this our list there and we're going to upend the cost.

230
00:22:33,950 --> 00:22:35,480
And this is what we're going to be plotting.

231
00:22:35,930 --> 00:22:39,400
Okay so iterations per 50.

232
00:22:39,500 --> 00:22:40,310
Right.

233
00:22:40,340 --> 00:22:48,620
So once that is done we can simply do peyote dot plot and then plotted or sure we can add a title to

234
00:22:48,620 --> 00:22:51,160
it if we want.

235
00:22:51,440 --> 00:22:54,860
Come over here CPO T dot title

236
00:22:57,650 --> 00:22:59,180
we can order lending rate

237
00:23:03,610 --> 00:23:04,590
now.

238
00:23:04,730 --> 00:23:10,910
We can simply fudge this from our dictionary or dictionary house lending rate.

239
00:23:11,030 --> 00:23:11,460
Yeah.

240
00:23:11,540 --> 00:23:15,350
We have lending rate the C.

241
00:23:16,910 --> 00:23:17,260
Yeah.

242
00:23:17,300 --> 00:23:24,520
This is lending rate so we can pull it from our dictionary so I can just see the string.

243
00:23:24,710 --> 00:23:26,330
What I want is a dictionary

244
00:23:29,660 --> 00:23:35,550
and in rate once that is done we can do POTUS show.

245
00:23:36,330 --> 00:23:37,280
Right.

246
00:23:37,300 --> 00:23:38,020
So let's see.

247
00:23:38,020 --> 00:23:45,580
So this will plot the um the iteration is this who plot the cost pie the cost by iteration graph the

248
00:23:45,850 --> 00:23:51,880
y axis is going to be the cost and the um the x axis is going to be the iteration so we should see the

249
00:23:51,880 --> 00:24:01,750
graph for actually as you see it starts from the top and begin to reduce as the US the model improves.

250
00:24:02,470 --> 00:24:03,640
Let's see what it looks like

251
00:24:08,300 --> 00:24:09,370
when I click here to run

252
00:24:12,600 --> 00:24:13,570
okay to learn in

253
00:24:21,980 --> 00:24:27,460
yeah says Well multiple let us know module called P L T.

254
00:24:27,760 --> 00:24:31,060
Yeah I suspect I know why this is

255
00:24:39,660 --> 00:24:39,880
yeah.

256
00:24:39,900 --> 00:24:41,680
Cos there's a typo here.

257
00:24:41,690 --> 00:24:43,160
I've got oh over here.

258
00:24:43,920 --> 00:24:44,990
Okay let's go

259
00:24:55,220 --> 00:24:59,650
Okay so that's where we go or what.

260
00:25:00,620 --> 00:25:03,920
Okay here's what we got.

261
00:25:04,070 --> 00:25:06,580
And then um I can just show this.

262
00:25:06,740 --> 00:25:14,660
So with essentially plotted this but every fifth yet iteration and I can see we started from the top

263
00:25:14,660 --> 00:25:15,000
here.

264
00:25:15,020 --> 00:25:22,150
This this is the cost from the top at iteration equals zero iteration of course to 250.

265
00:25:22,220 --> 00:25:25,140
This is this the cost that we had.

266
00:25:25,270 --> 00:25:30,400
And then as we continued continued reducing iteration of cost two thousand.

267
00:25:30,440 --> 00:25:31,330
We reduced to this.

268
00:25:31,340 --> 00:25:35,110
And this the best we could get for two thousand iterations.

269
00:25:35,120 --> 00:25:42,230
How about we see the um the three thousand iterations we tried earlier we showed the graph should tell

270
00:25:42,230 --> 00:25:45,020
us where things began to go wrong.

271
00:25:45,020 --> 00:25:47,490
I've changed a number of iterations to three thousand.

272
00:25:47,570 --> 00:25:48,950
Let's see what that looks like

273
00:26:00,410 --> 00:26:00,680
okay.

274
00:26:00,710 --> 00:26:02,880
This is sixty eight percent.

275
00:26:02,880 --> 00:26:04,020
Mm hmm.

276
00:26:04,340 --> 00:26:07,300
Let's try to zoom in and see if there's something we can see.

277
00:26:13,920 --> 00:26:14,570
Okay.

278
00:26:16,930 --> 00:26:18,740
It looks almost like the other one.

279
00:26:20,210 --> 00:26:20,790
Okay.

280
00:26:22,890 --> 00:26:24,230
I'm gonna close this.

281
00:26:24,360 --> 00:26:28,850
I'm gonna try five thousand iterations.

282
00:26:28,860 --> 00:26:29,250
See

283
00:26:37,210 --> 00:26:38,230
this what we have.

284
00:26:38,580 --> 00:26:39,100
What is.

285
00:26:39,200 --> 00:26:39,520
Yeah.

286
00:26:40,380 --> 00:26:40,760
Okay.

287
00:26:40,800 --> 00:26:45,020
5000 iteration gave us 70 percent again.

288
00:26:45,030 --> 00:26:45,520
Right.

289
00:26:45,870 --> 00:26:46,380
Okay.

290
00:26:46,380 --> 00:26:51,540
Enough experimenting with this so you can experiment with this you can change the number of iterations

291
00:26:51,570 --> 00:26:56,240
that lending rate and then see what you can do better than this.

292
00:26:56,250 --> 00:27:03,370
But given the little amount of data and given the type of neural network we using it.

293
00:27:03,420 --> 00:27:08,880
It's a quasi neural network I should say using logistic regression here is not a best tool to use but

294
00:27:08,880 --> 00:27:11,420
the performance is fine it's acceptable here.

295
00:27:11,600 --> 00:27:15,960
Okay so we can go on and on and test.

296
00:27:16,080 --> 00:27:20,430
We can test with which our own image if we want to.
