-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathResults_MachineLearning.txt
3740 lines (3740 loc) · 205 KB
/
Results_MachineLearning.txt
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
[
{
"videoId": "rKsjlA4fEeW7HSIACy8Jxg",
"questions": []
},
{
"videoId": "Iq7-fL1-EeSqHiIAC2idzw",
"questions": []
},
{
"videoId": "6Ypr1hQ-EeeFZBJX5mIoyg",
"questions": [
{
"id": "yeEoMxykEeeKxgq5rEPplg",
"type": "checkbox",
"definition": "<text>\"A computer program is said to learn from experience E with respect to some task T and some performance measure P, if its performance on T, as measured by P, improves with experience E.\" </text><text>Suppose your email program watches which emails you do or do not mark as spam, and based on that learns how to better filter spam. What is the task T in this setting? </text>",
"options": [
{
"id": "0.3217165089626439",
"content": "<text>Classify emails as spam or not spam.</text>"
},
{
"id": "0.6127126640150993",
"content": "<text>Watching you label emails as spam or not spam.</text>"
},
{
"id": "0.7664927352929847",
"content": "<text>The number (or fraction) of emails correctly classified as spam/not spam.</text>"
},
{
"id": "0.7069224238394478",
"content": "<text>None of the above, this is not a machine learning algorithm.</text>"
}
],
"answer": [
"0.3217165089626439"
],
"explanation": "",
"videoCuePoint": 194881
}
]
},
{
"videoId": "IrD6Tb1-EeSqHiIAC2idzw",
"questions": [
{
"id": "k0H3UrLrEeSTXyIACzQGuw@4",
"type": "mcq",
"definition": "<text>You\u2019re running a company, and you want to develop learning algorithms to address each of two problems. Problem 1:You have a large inventory of identical items. You want to predict how many of these items will sell over the next 3 months.</text><text>Problem 2: You\u2019d like software to examine individual customer accounts, and for each account decide if it has been hacked/compromised. Should you treat these as classification or as regression problems?</text>",
"options": [
{
"id": "1lRSp9xhCZ",
"content": "<text>Treat both as classification problems.</text>"
},
{
"id": "r7ZB9oOBve",
"content": "<text>Treat problem 1 as a classification problem, problem 2 as a regression problem.</text>"
},
{
"id": "bo9UzgFN2T",
"content": "<text>Treat problem 1 as a regression problem, problem 2 as a classification problem.</text>"
},
{
"id": "7wigrtDhe6",
"content": "<text>Treat both as regression problems.</text>"
}
],
"answer": [
"bo9UzgFN2T"
],
"explanation": "",
"videoCuePoint": 678500
}
]
},
{
"videoId": "IrFvfr1-EeSqHiIAC2idzw",
"questions": [
{
"id": "DIsCI26ARr",
"type": "checkbox",
"definition": "<text>Of the following examples, which would you address using an unsupervised learning algorithm? (Check all that apply.)</text>",
"options": [
{
"id": "5sSZfbyH6N",
"content": "<text>Given email labeled as spam/not spam, learn a spam filter.</text>"
},
{
"id": "cIrwuamv01",
"content": "<text>Given a set of news articles found on the web, group them into sets of articles about the same stories.</text>"
},
{
"id": "2gBgxGj2NR",
"content": "<text>Given a database of customer data, automatically discover market segments and group customers into different market segments.</text>"
},
{
"id": "hg80Rm7BvA",
"content": "<text>Given a dataset of patients diagnosed as either having diabetes or not, learn to classify new patients as having diabetes or not.</text>"
}
],
"answer": [
"cIrwuamv01",
"2gBgxGj2NR"
],
"explanation": "",
"videoCuePoint": 780500
}
]
},
{
"videoId": "IrILv71-EeSqHiIAC2idzw",
"questions": [
{
"id": "MPky4kp4xX",
"type": "mcq",
"definition": "<text hasMath=\"true\">Consider the training set shown below. $$(x^{(i)}, y^{(i)})$$ is the $$i^{th}$$ training example. What is $$y^{(3)}$$?</text><table rows=\"6\" columns=\"2\"><tr><td><text hasMath=\"true\">Size in feet$$^2$$ ($$x$$)</text></td><td><text hasMath=\"true\">Price ($) in 1000's ($$y$$)</text></td></tr><tr><td><text>2104</text></td><td><text>460</text></td></tr><tr><td><text>1416</text></td><td><text>232</text></td></tr><tr><td><text>1534</text></td><td><text>315</text></td></tr><tr><td><text>852</text></td><td><text>178</text></td></tr><tr><td><text>...</text></td><td><text>...</text></td></tr></table>",
"options": [
{
"id": "CEgT77LLCl",
"content": "<text>1416</text>"
},
{
"id": "VsZTBP5GWA",
"content": "<text>1534</text>"
},
{
"id": "muEi5gyrg3",
"content": "<text>315</text>"
},
{
"id": "YfU9ilgrvJ",
"content": "<text>0</text>"
}
],
"answer": [
"muEi5gyrg3"
],
"explanation": "",
"videoCuePoint": 278500
}
]
},
{
"videoId": "IrNrUL1-EeSqHiIAC2idzw",
"questions": [
{
"id": "kszH0bLrEeSTXyIACzQGuw@2",
"type": "mcq",
"definition": "<text hasMath=\"true\">Consider the plot below of $$h_\\theta(x) = \\theta_0 + \\theta_1x$$. What are $$\\theta_0$$ and $$\\theta_1$$?</text><img src=\"http://spark-public.s3.amazonaws.com/ml/images/2.2-quiz-1-fig.jpg\" alt=\"A line of $$h_\\theta(x)$$ as a function of $$x$$. The line goes through points (0, 0.5), (1, 1.5), and (2, 2.5).\" />",
"options": [
{
"id": "CEgT77LLCl",
"content": "<text hasMath=\"true\">$$\\theta_0 = 0, \\theta_1 = 1$$</text>"
},
{
"id": "VsZTBP5GWA",
"content": "<text hasMath=\"true\">$$\\theta_0 = 0.5, \\theta_1 = 1$$</text>"
},
{
"id": "muEi5gyrg3",
"content": "<text hasMath=\"true\">$$\\theta_0 = 1, \\theta_1 = 0.5$$</text>"
},
{
"id": "YfU9ilgrvJ",
"content": "<text hasMath=\"true\">$$\\theta_0 = 1, \\theta_1 = 1$$</text>"
}
],
"answer": [
"VsZTBP5GWA"
],
"explanation": "",
"videoCuePoint": 132500
}
]
},
{
"videoId": "IrPggb1-EeSqHiIAC2idzw",
"questions": [
{
"id": "d8Rtc7LCHS",
"type": "mcq",
"definition": "<text hasMath=\"true\">Suppose we have a training set with m=3 examples, plotted below. Our hypothesis representation is $$h_\\theta(x) = \\theta_1x$$, with parameter $$\\theta_1$$. The cost function $$J(\\theta_1)$$ is $$J(\\theta_1) = \\frac{1}{2m} \\sum^m_{i=1} (h_\\theta (x^{(i)}) - y^{(i)})^2$$. What is $$J(0)$$?</text><img src=\"http://spark-public.s3.amazonaws.com/ml/images/2.3-quiz-1-fig.jpg\" alt=\"A plot of $$h_\\theta(x)$$ versus $$x$$. There are three markers on the plot: one at (1,1), one at (2,2), and one at (3,3).\" />",
"options": [
{
"id": "9JcoJAKXH6",
"content": "<text>0</text>"
},
{
"id": "wEKo9vutSr",
"content": "<text>1/6</text>"
},
{
"id": "ZE1NZI8S5d",
"content": "<text>1</text>"
},
{
"id": "AuddBmY8xZ",
"content": "<text>14/6</text>"
}
],
"answer": [
"AuddBmY8xZ"
],
"explanation": "",
"videoCuePoint": 412400
}
]
},
{
"videoId": "IrRVsr1-EeSqHiIAC2idzw",
"questions": []
},
{
"videoId": "IrbGtb1-EeSqHiIAC2idzw",
"questions": [
{
"id": "nzOSLZkEXV",
"type": "mcq",
"definition": "<text hasMath=\"true\">Suppose $$\\theta_0= 1, \\theta_1= 2$$, and we simultaneously update $$\\theta_0$$ and $$\\theta_1$$ using the rule:$$\\theta_j := \\theta_j + \\sqrt{\\theta_0 \\theta_1}$$ (for j = 0 and j=1) What are the resulting values of $$\\theta_0$$ and $$\\theta_1$$?</text>",
"options": [
{
"id": "TMhzXrsOre",
"content": "<text hasMath=\"true\">$$\\theta_0 = 1, \\theta_1 =2 $$</text>"
},
{
"id": "BdkbTkQkTo",
"content": "<text hasMath=\"true\">$$\\theta_0 = 1+\\sqrt{2}, \\theta_1 =2 + \\sqrt{2} $$</text>"
},
{
"id": "H0XLv3ka1X",
"content": "<text hasMath=\"true\">$$\\theta_0 = 2 + \\sqrt{2}, \\theta_1 =1 + \\sqrt{2}$$</text>"
},
{
"id": "AAyxg9FE2u",
"content": "<text hasMath=\"true\">$$\\theta_0 = 1+\\sqrt{2}, \\theta_1 =2 + \\sqrt{(1 + \\sqrt{2})\\cdot 2} $$</text>"
}
],
"answer": [
"BdkbTkQkTo"
],
"explanation": "",
"videoCuePoint": 648000
}
]
},
{
"videoId": "IrZRhL1-EeSqHiIAC2idzw",
"questions": [
{
"id": "F7CFqgWAOd",
"type": "mcq",
"definition": "<text hasMath=\"true\">Suppose $$\\theta_1$$ is at a local optimum of $$J(\\theta_1)$$, such as shown in the figure. </text><text hasMath=\"true\">What will one step of gradient descent $$\\theta_1 := \\theta_1 -\\alpha \\frac{d}{d \\theta_1} J(\\theta_1)$$ do?</text><img src=\"http://spark-public.s3.amazonaws.com/ml/images/2.6-quiz-1-fig.jpg\" alt=\"A plot of $$J(\\theta)$$ versus $$\\theta$$. The plot has a local minimum at $$\\theta_1$$.\" />",
"options": [
{
"id": "fM2bYlhWSR",
"content": "<text hasMath=\"true\">Leave $$\\theta_1$$ unchanged</text>"
},
{
"id": "3NAsEMcLCo",
"content": "<text hasMath=\"true\">Change $$\\theta_1$$ in a random direction</text>"
},
{
"id": "6nZkhj8Aue",
"content": "<text hasMath=\"true\">Move $$\\theta_1$$ in the direction of the global minimum of $$J(\\theta_1)$$</text>"
},
{
"id": "dWYsa1K4Gg",
"content": "<text hasMath=\"true\">Decrease $$\\theta_1$$</text>"
}
],
"answer": [
"fM2bYlhWSR"
],
"explanation": "",
"videoCuePoint": 484500
}
]
},
{
"videoId": "IrXcU71-EeSqHiIAC2idzw",
"questions": [
{
"id": "qC8kiV3NhH",
"type": "checkbox",
"definition": "<text>Which of the following are true statements? Select all that apply.</text>",
"options": [
{
"id": "ywbT93ti2F",
"content": "<text hasMath=\"true\">To make gradient descent converge, we must slowly decrease $$\\alpha$$ over time.</text>"
},
{
"id": "WT9Kka8vqB",
"content": "<text hasMath=\"true\">Gradient descent is guaranteed to find the global minimum for any function $$J(\\theta_0, \\theta_1)$$.</text>"
},
{
"id": "J3dZndsMLr",
"content": "<text hasMath=\"true\">Gradient descent can converge even if $$\\alpha$$ is kept fixed. (But $$\\alpha$$ cannot be too large, or else it may fail to converge.)</text>"
},
{
"id": "s2jYX64VJX",
"content": "<text hasMath=\"true\">For the specific choice of cost function $$J(\\theta_0, \\theta_1)$$ used in linear regression, there are no local optima (other than the global optimum).</text>"
}
],
"answer": [
"J3dZndsMLr",
"s2jYX64VJX"
],
"explanation": "",
"videoCuePoint": 544400
}
]
},
{
"videoId": "Irh0Zr1-EeSqHiIAC2idzw",
"questions": [
{
"id": "3c2b16ed68c0fc61df870ea549d79271",
"type": "mcq",
"definition": "<text hasMath=\"true\">Let A be a matrix shown below. $$A_{32}$$ is one of the elements of this matrix.</text><text hasMath=\"true\">$$A = \\begin{bmatrix} 85 & 76 & 66 & 5 \\\\ 94 & 75 & 18 & 28 \\\\ 68 & 40 & 71 & 5 \\end{bmatrix}$$</text><text hasMath=\"true\">What is the value of $$A_{32}$$?</text><text /><text />",
"options": [
{
"id": "c81f138372906ce22c9b251b8012c5fb",
"content": "<text>18</text>"
},
{
"id": "ba095338b51acde90514e9cf92cb9fda",
"content": "<text>28</text>"
},
{
"id": "251e3a5ac86dff237f3cf96d5ecf2f05",
"content": "<text>76</text>"
},
{
"id": "0694c7e583da06ae47f839a1cd717150",
"content": "<text>40</text>"
}
],
"answer": [
"0694c7e583da06ae47f839a1cd717150"
],
"explanation": "",
"videoCuePoint": 295300
},
{
"id": "57859454cf35d425bd94006afdc9e1fe",
"type": "checkbox",
"definition": "<text>Which of the following statements are true? Check all that apply.</text>",
"options": [
{
"id": "c1fb1b8b50ba0ea1b81af04fbae9fd54",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix} 1 & 2 \\\\ 4 & 0 \\\\ 0 & 1 \\end{bmatrix}$$ is a $$3\\times2$$ matrix.</text>"
},
{
"id": "3d1f8157059753badbc389215f504601",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix} 0 & 1 & 4 & 2 \\\\ 3 & 4 & 0 & 9\\end{bmatrix}$$ is a $$4\\times2$$ matrix.</text>"
},
{
"id": "099686611ea7bb7ea009434f215604e4",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix} 0 & 4 & 2 \\\\ 3 & 4 & 9 \\\\ 5 & -1 & 0 \\end{bmatrix}$$ is a $$3\\times3$$ matrix.</text>"
},
{
"id": "f0c8f3b4195f2937ac4a3f3b82fe1e4d",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}1 & 2\\end{bmatrix}$$ is a $$1\\times2$$ matrix.</text>"
}
],
"answer": [
"c1fb1b8b50ba0ea1b81af04fbae9fd54",
"099686611ea7bb7ea009434f215604e4",
"f0c8f3b4195f2937ac4a3f3b82fe1e4d"
],
"explanation": "",
"videoCuePoint": 146300
}
]
},
{
"videoId": "Irjpl71-EeSqHiIAC2idzw",
"questions": [
{
"id": "969fd508d737a44cd4a5fe69a583942f",
"type": "mcq",
"definition": "<text hasMath=\"true\">What is $$\\begin{bmatrix}4 \\\\ 6 \\\\ 7\\end{bmatrix} / 2 - 3\\begin{bmatrix}2 \\\\ 1 \\\\ 0 \\end{bmatrix}$$?</text>",
"options": [
{
"id": "df156ec82816fed9a92e71d24a69a8de",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}4 \\\\ 0 \\\\ 5\\end{bmatrix}$$</text>"
},
{
"id": "6687c05563bb97bd9e354e12f927894a",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}-4 \\\\ -1 \\\\ 3\\end{bmatrix}$$</text>"
},
{
"id": "57717c11d36c6b832a16012d3b7e9447",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}-4 \\\\ 0 \\\\ 3.5\\end{bmatrix}$$</text>"
},
{
"id": "3c41ac9fb365771c86a5b47298ee5fe0",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}0 \\\\ 2 \\\\ 3.5 \\end{bmatrix}$$</text>"
}
],
"answer": [
"57717c11d36c6b832a16012d3b7e9447"
],
"explanation": "",
"videoCuePoint": 400900
},
{
"id": "cda9dad8fb55efcabea787717102f417",
"type": "mcq",
"definition": "<text hasMath=\"true\">What is $$2 \\times \\begin{bmatrix}4 & 5 \\\\ 1 & 7\\end{bmatrix}$$?</text>",
"options": [
{
"id": "0fc82c4aee8ac9c5d646dfdd43d618cf",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix} 8 & 10 \\\\ 2 & 14 \\end{bmatrix}$$</text>"
},
{
"id": "f1aa006423c170d17073d40753dff0ae",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix} 8 & 5 \\\\ 1 & 7 \\end{bmatrix}$$</text>"
},
{
"id": "bbd88f7206eda14b08c3056c84e94dc8",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}8 & 10 \\\\ 1 & 7\\end{bmatrix}$$</text>"
},
{
"id": "adec7597e612a36995f3e736fba9db00",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}4 & 5 \\\\ 1 & 14\\end{bmatrix}$$</text>"
}
],
"answer": [
"0fc82c4aee8ac9c5d646dfdd43d618cf"
],
"explanation": "",
"videoCuePoint": 241500
},
{
"id": "cf2a66ef4fcbb82846f7d784de4763eb",
"type": "mcq",
"definition": "<text>What is</text><text hasMath=\"true\">$$\\begin{bmatrix} 8 & 6 & 9\\\\ 10 & 1 & 10\\end{bmatrix} + \\begin{bmatrix} 3 & 10 & 2 \\\\ 6 & 1 & -1\\end{bmatrix}$$?</text>",
"options": [
{
"id": "0cbb9675af3c85205d180265d88f029f",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix} 5 & -4 & 7 \\\\ 4 & 0 & 11 \\end{bmatrix}$$</text>"
},
{
"id": "884a7c7a9f88670878b9989fe5e36e55",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix} 11 & 16 & 11 \\\\ 16 & 2 & 9 \\end{bmatrix}$$</text>"
},
{
"id": "328c87463f4491245526aa90a1e07ae0",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix} 14 & 7 & 8 \\\\ 13 & 11 & 12\\end{bmatrix}$$</text>"
},
{
"id": "f9089c268b3257d4bfa9fc3981f5ed27",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}8 & 6 & 9 \\\\ 10 & 1 & 10 \\end{bmatrix}$$</text>"
}
],
"answer": [
"884a7c7a9f88670878b9989fe5e36e55"
],
"explanation": "",
"videoCuePoint": 111500
}
]
},
{
"videoId": "IrleyL1-EeSqHiIAC2idzw",
"questions": [
{
"id": "00eb0e871e6ce85883cddb9d12d566c0",
"type": "mcq",
"definition": "<text>Consider the product of these two matrices:</text><text hasMath=\"true\">$$\\begin{bmatrix} 1 & 2 & 1 & 5 \\\\ 0 & 3 & 0 & 4 \\\\ -1 & -2 & 0 & 0 \\end{bmatrix} \\begin{bmatrix} 1 \\\\ 3 \\\\ 2 \\\\ 1 \\end{bmatrix}$$</text><text>What is the dimension of the product?</text>",
"options": [
{
"id": "3344257d7957ece1970b99a7ff3bc5e8",
"content": "<text hasMath=\"true\">$$3\\times1$$</text>"
},
{
"id": "2313bb2c01172ab252485adedde45334",
"content": "<text hasMath=\"true\">$$3\\times4$$</text>"
},
{
"id": "fe034993e6ec3b1d51363c4a2c1fd8c0",
"content": "<text hasMath=\"true\">$$1\\times3$$</text>"
},
{
"id": "6328a2a4d859724428d88afdf5408fb1",
"content": "<text hasMath=\"true\">$$4\\times4$$</text>"
}
],
"answer": [
"3344257d7957ece1970b99a7ff3bc5e8"
],
"explanation": "",
"videoCuePoint": 315000
},
{
"id": "8b4486925af827a18afd8fcaaabbf164",
"type": "mcq",
"definition": "<text hasMath=\"true\">What is $$\\begin{bmatrix} 1 & 0 & 3 \\\\ 2 & 1 & 5 \\\\ 3 & 1 & 2 \\end{bmatrix} \\times \\begin{bmatrix} 1 \\\\ 6 \\\\ 2\\end{bmatrix}$$?</text>",
"options": [
{
"id": "03e3e1c56f4509305878374654c0f93a",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}5 \\\\ 10 \\\\ 1\\end{bmatrix}$$</text>"
},
{
"id": "c8fe68ede2e1e0042b17c6352cb87868",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}7 \\\\ 12 \\\\ 7\\end{bmatrix}$$</text>"
},
{
"id": "22d890fdf0e5b396c9a3d825cec2f807",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}7 \\\\ 18 \\\\ 13\\end{bmatrix}$$</text>"
},
{
"id": "b0e48d14cb27d42a8df2d210e486be63",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}1 \\\\ 18 \\\\ 13\\end{bmatrix}$$</text>"
}
],
"answer": [
"22d890fdf0e5b396c9a3d825cec2f807"
],
"explanation": "",
"videoCuePoint": 448500
}
]
},
{
"videoId": "Irrlab1-EeSqHiIAC2idzw",
"questions": [
{
"id": "e5838670d9efc65d7133f262cd352ab8",
"type": "mcq",
"definition": "<text hasMath=\"true\">In the equation $$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}1 & 0 \\\\ 2 & 3\\end{bmatrix} = \\begin{bmatrix}7 & 9 \\\\ a & b \\\\ c & d \\end{bmatrix}$$, what is $$b$$?</text><text hasMath=\"true\">Hint: Compute $$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}1 \\\\ 2 \\end{bmatrix}$$ and</text><text hasMath=\"true\">$$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}0 \\\\3\\end{bmatrix}$$.</text>",
"options": [
{
"id": "837464b7c72db7743f9c3628d193990b",
"content": "<text>7</text>"
},
{
"id": "26defa14d3f52497c3018b23e4441e0f",
"content": "<text>10</text>"
},
{
"id": "934c5ef1991422b7d821280e80a8d3c1",
"content": "<text>12</text>"
},
{
"id": "e1bb890898566fe47d8786b6821fe549",
"content": "<text>15</text>"
}
],
"answer": [
"934c5ef1991422b7d821280e80a8d3c1"
],
"explanation": "",
"videoCuePoint": 453500
},
{
"id": "8a904036386999c4f1f6846b687276c3",
"type": "mcq",
"definition": "<text hasMath=\"true\">In the equation $$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}1 & 0 \\\\ 2 & 3\\end{bmatrix} = \\begin{bmatrix}7 & 9 \\\\ a & b \\\\ c & d \\end{bmatrix}$$, what is $$a$$?</text><text hasMath=\"true\">Hint: Compute $$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}1 \\\\ 2 \\end{bmatrix}$$ and</text><text hasMath=\"true\">$$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}0 \\\\3\\end{bmatrix}$$.</text>",
"options": [
{
"id": "cd2007781debc3c9f9fe4fba8c666240",
"content": "<text>7</text>"
},
{
"id": "425687ee92a60538c911a9fe2cb5d380",
"content": "<text>12</text>"
},
{
"id": "309c78075bbfa143383bbd762b3d52e8",
"content": "<text>10</text>"
},
{
"id": "a217d4ad7d521fc199dbb193644799bb",
"content": "<text>6</text>"
}
],
"answer": [
"309c78075bbfa143383bbd762b3d52e8"
],
"explanation": "",
"videoCuePoint": 453500
},
{
"id": "c8be7aa3a9ad4ddaa7a89759b749d4e5",
"type": "mcq",
"definition": "<text hasMath=\"true\">In the equation $$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}1 & 0 \\\\ 2 & 3\\end{bmatrix} = \\begin{bmatrix}7 & 9 \\\\ a & b \\\\ c & d \\end{bmatrix}$$, what is $$c$$?</text><text hasMath=\"true\">Hint: Compute $$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}1 \\\\ 2 \\end{bmatrix}$$ and</text><text hasMath=\"true\">$$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}0 \\\\3\\end{bmatrix}$$.</text>",
"options": [
{
"id": "1904700183a40a78a8405547665f7d25",
"content": "<text>7</text>"
},
{
"id": "ea05a6762c5f52f159970fe160de5a54",
"content": "<text>12</text>"
},
{
"id": "8a31eaffa99b0d1048427515147d0ea5",
"content": "<text>10</text>"
},
{
"id": "261bddefc353440f841898d16d4a7cec",
"content": "<text>15</text>"
}
],
"answer": [
"8a31eaffa99b0d1048427515147d0ea5"
],
"explanation": "",
"videoCuePoint": 453500
},
{
"id": "5b2ba42c35aaac2b01cd8a53ea9527d6",
"type": "mcq",
"definition": "<text hasMath=\"true\">In the equation $$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}1 & 0 \\\\ 2 & 3\\end{bmatrix} = \\begin{bmatrix}7 & 9 \\\\ a & b \\\\ c & d \\end{bmatrix}$$, what is $$d$$?</text><text hasMath=\"true\">Hint: Compute $$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}1 \\\\ 2 \\end{bmatrix}$$ and</text><text hasMath=\"true\">$$\\begin{bmatrix} 1 & 3 \\\\ 2 & 4 \\\\ 0 & 5 \\end{bmatrix}\\begin{bmatrix}0 \\\\3\\end{bmatrix}$$.</text>",
"options": [
{
"id": "6624ee078af34a696c5e1b75b1c6ed3b",
"content": "<text>8</text>"
},
{
"id": "0606e6c7d80a66d779e7726404593097",
"content": "<text>10</text>"
},
{
"id": "7d766e9bab8b9929ab8a95a8d426ea31",
"content": "<text>12</text>"
},
{
"id": "33ef71704b26c227767a1ce8bda0e46b",
"content": "<text>15</text>"
}
],
"answer": [
"33ef71704b26c227767a1ce8bda0e46b"
],
"explanation": "",
"videoCuePoint": 453500
}
]
},
{
"videoId": "Irtamr1-EeSqHiIAC2idzw",
"questions": [
{
"id": "805a2e0fcda986965492bc212f552b86",
"type": "mcq",
"definition": "<text hasMath=\"true\">What is $$\\begin{bmatrix} 1 & 0 & 0 \\\\ 0 & 1 & 0 \\\\ 0 & 0 & 1 \\end{bmatrix}\\times\\begin{bmatrix} 1 \\\\ 3 \\\\ 2 \\end{bmatrix}$$?</text>",
"options": [
{
"id": "ca5993af294fc39ba6a8ac399fec508e",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}2\\\\3\\\\1\\end{bmatrix}$$</text>"
},
{
"id": "6d7251327a44f6abcbebcd382842f987",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}2\\\\1\\\\3\\end{bmatrix}$$</text>"
},
{
"id": "9dd92b534b3916b1150b36d66a6abd1f",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}1\\\\3\\\\2\\end{bmatrix}$$</text>"
},
{
"id": "ec27a7d997b80dfc8d5034f6de005e26",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}1&&3&&2\\end{bmatrix}$$</text>"
}
],
"answer": [
"9dd92b534b3916b1150b36d66a6abd1f"
],
"explanation": "",
"videoCuePoint": 519299
}
]
},
{
"videoId": "Irwd671-EeSqHiIAC2idzw",
"questions": [
{
"id": "6f6afdadddd0e0c65c8c99853bfd0663",
"type": "mcq",
"definition": "<text hasMath=\"true\">What is $$\\begin{bmatrix}0 & 3 \\\\ 1 & 4 \\end{bmatrix}^T$$?</text>",
"options": [
{
"id": "bbf92f895f4d3446977389934a88eb3f",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}0 & 4 \\\\ 1 & 3 \\end{bmatrix}$$</text>"
},
{
"id": "d8b4298857f0043081302476fe5dd67d",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}4 & 3 \\\\ 1 & 0 \\end{bmatrix}$$</text>"
},
{
"id": "db022531ce1c28a4c17c36b9a6bc13ad",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}4 & 1 \\\\ 3 & 0 \\end{bmatrix}$$</text>"
},
{
"id": "46a88833c8fd16152926ce7b8ed50d33",
"content": "<text hasMath=\"true\">$$\\begin{bmatrix}0 & 1 \\\\ 3 & 4 \\end{bmatrix}$$</text>"
}
],
"answer": [
"46a88833c8fd16152926ce7b8ed50d33"
],
"explanation": "",
"videoCuePoint": 578000
}
]
},
{
"videoId": "IryTHL1-EeSqHiIAC2idzw",
"questions": [
{
"id": "791cf62ccc3d917d55572d730369f5d8",
"type": "mcq",
"definition": "<table rows=\"6\" columns=\"5\"><tr><td><text hasMath=\"true\">Size (feet)$$^2$$</text></td><td><text>Number of bedrooms</text></td><td><text>Number of floors</text></td><td><text>Age of home (years)</text></td><td><text>Price ($1000)</text></td></tr><tr><td><text>2104</text></td><td><text>5</text></td><td><text>1</text></td><td><text>45</text></td><td><text>460</text></td></tr><tr><td><text>1416</text></td><td><text>3</text></td><td><text>2</text></td><td><text>40</text></td><td><text>232</text></td></tr><tr><td><text>1534</text></td><td><text>3</text></td><td><text>2</text></td><td><text>30</text></td><td><text>315</text></td></tr><tr><td><text>852</text></td><td><text>2</text></td><td><text>1</text></td><td><text>36</text></td><td><text>178</text></td></tr><tr><td><text>...</text></td><td><text>...</text></td><td><text>...</text></td><td><text>...</text></td><td><text>...</text></td></tr></table><text hasMath=\"true\">In the training set above, what is $$x_1^{(4)}$$?</text>",
"options": [
{
"id": "01b94121b090ca3c8135ce4ae1ae0814",
"content": "<text hasMath=\"true\">The size (in feet$$^2$$) of the 1<sup>st</sup> home in the training set</text>"
},
{
"id": "b432360d7abc1f564e52fd670c3b1ab4",
"content": "<text>The age (in years) of the 1<sup>st</sup> home in the training set</text>"
},
{
"id": "89dc6767d288438ac6f0178ff5b0e40c",
"content": "<text hasMath=\"true\">The size (in feet$$^2$$) of the 4<sup>th</sup> home in the training set</text>"
},
{
"id": "821268b0413f509c4a155b58a9e0e763",
"content": "<text>The age (in years) of the 4<sup>th</sup> home in the training set</text>"
}
],
"answer": [
"89dc6767d288438ac6f0178ff5b0e40c"
],
"explanation": "",
"videoCuePoint": 204000
}
]
},
{
"videoId": "Ir0ITb1-EeSqHiIAC2idzw",
"questions": [
{
"id": "e54e8c69a65bcbc318b917e38953c209",
"type": "checkbox",
"definition": "<text>When there are n features, we define the cost function as</text><text hasMath=\"true\">$$ \\displaystyle J(\\theta) = \\frac{1}{2m}\\sum_{i=1}^{m}(h_\\theta(x^{(i)}) - y^{(i)})^2$$.</text><text hasMath=\"true\">For linear regression, which of the following are also equivalent and correct definitions of $$J(\\theta)$$?</text>",
"options": [
{
"id": "deac2bdac89df36b0158a36172025dc6",
"content": "<text hasMath=\"true\">$$J(\\theta) = \\frac{1}{2m}\\sum_{i=1}^{m}(\\theta^T x^{(i)} - y^{(i)})^2$$</text>"
},
{
"id": "16bc75af29f4569c0f32bf01767fe2a8",
"content": "<text hasMath=\"true\">$$J(\\theta) = \\frac{1}{2m}\\sum_{i=1}^{m}\\left(\\left(\\sum_{j=0}^{n}\\theta_j x^{(i)}_j\\right) - y^{(i)}\\right)^2$$ (Inner sum starts at 0)</text>"
},
{
"id": "b9bfda99f46ec9c8896e2784b7942065",
"content": "<text hasMath=\"true\">$$J(\\theta) = \\frac{1}{2m}\\sum_{i=1}^{m}\\left(\\left(\\sum_{j=1}^{n}\\theta_j x^{(i)}_j\\right) - y^{(i)}\\right)^2$$ (Inner sum starts at 1)</text>"
},
{
"id": "33b0ecb39caed4b1de965122b10df740",
"content": "<text hasMath=\"true\">$$J(\\theta) = \\frac{1}{2m}\\sum_{i=1}^{m}\\left(\\left(\\sum_{j=0}^{n}\\theta_j x^{(i)}_j\\right) - \\left(\\sum_{j=0}^{n}y^{(i)}_j\\right)\\right)^2$$</text>"
}
],
"answer": [
"deac2bdac89df36b0158a36172025dc6",
"16bc75af29f4569c0f32bf01767fe2a8"
],
"explanation": "",
"videoCuePoint": 81500
}
]
},
{
"videoId": "Ir6O7r1-EeSqHiIAC2idzw",
"questions": [
{
"id": "58b4401ec2b72d36407ff4abf7865fce",
"type": "mcq",
"definition": "<text hasMath=\"true\">Suppose you are using a learning algorithm to estimate the price of houses in a city. You want one of your features $$x_i$$ to capture the age of the house. In your training set, all of your houses have an age between 30 and 50 years, with an average age of 38 years. Which of the following would you use as features, assuming you use feature scaling and mean normalization?</text>",
"options": [
{
"id": "91732aa35cff5b851a292699a88244bf",
"content": "<text hasMath=\"true\">$$\\displaystyle x_i = \\text{age of house}$$</text>"
},
{
"id": "49f65038fee111ea097e99c7b0d1d6c6",
"content": "<text hasMath=\"true\">$$\\displaystyle x_i = \\frac{\\text{age of house}}{50}$$</text>"
},
{
"id": "b27c113d330fcf182e866c2b4a4584d0",
"content": "<text hasMath=\"true\">$$\\displaystyle x_i = \\frac{\\text{age of house}-38}{50}$$</text>"
},
{
"id": "efcc8ea20b8eff1b74d88a72011872b6",
"content": "<text hasMath=\"true\">$$\\displaystyle x_i = \\frac{\\text{age of house}-38}{20}$$</text>"
}
],
"answer": [
"efcc8ea20b8eff1b74d88a72011872b6"
],
"explanation": "",
"videoCuePoint": 514500
}
]
},
{
"videoId": "Ir8rL71-EeSqHiIAC2idzw",
"questions": [
{
"id": "48c58d91e8b4ba69e855527382fd0024",
"type": "mcq",
"definition": "<text hasMath=\"true\">Suppose a friend ran gradient descent three times, with $$\\alpha = 0.01$$, $$\\alpha = 0.1$$, and $$\\alpha = 1$$, and got the following three plots (labeled A, B, and C):</text><img src=\"http://spark-public.s3.amazonaws.com/ml/images/4.4-quiz-1-plots.png\" alt=\"Plot A shows $$J(\\theta)$$ sharply decreasing after the first few iterations, and then leveling off. Plot B shows $$J(\\theta)$$ slowly decreasing at every iteration, and still decreasing at the last iteration. Plot C shows $$J(\\theta)$$ increasing every iteration, with the increase growing in every iteration.\" /><text hasMath=\"true\">Which plots corresponds to which values of $$\\alpha$$?</text>",
"options": [
{
"id": "439b299d0d3b8420430a897f2575e809",
"content": "<text hasMath=\"true\">A is $$\\alpha=0.01$$, B is $$\\alpha = 0.1$$, C is $$\\alpha =1$$.</text>"
},
{
"id": "dccf33328b0e92882b98ad16cd4a7680",
"content": "<text hasMath=\"true\">A is $$\\alpha=0.1$$, B is $$\\alpha = 0.01$$, C is $$\\alpha =1$$.</text>"
},
{
"id": "06a63d651a7c9b4f2da4da9b4961fcb9",
"content": "<text hasMath=\"true\">A is $$\\alpha=1$$, B is $$\\alpha = 0.01$$, C is $$\\alpha =0.1$$.</text>"
},
{
"id": "3227ee08ed2cb93cac9873dcc97e3399",
"content": "<text hasMath=\"true\">A is $$\\alpha=1$$, B is $$\\alpha = 0.1$$, C is $$\\alpha =0.01$$.</text>"
}
],
"answer": [
"dccf33328b0e92882b98ad16cd4a7680"
],
"explanation": "<text>In graph C, the cost function is increasing, so the learning rate is set too high. Both graphs A and B converge to an optimum of the cost function, but graph B does so very slowly, so its learning rate is set too low. Graph A lies between the two.</text>",
"videoCuePoint": 411800
}
]
},
{
"videoId": "Ir95UL1-EeSqHiIAC2idzw",
"questions": [
{
"id": "e6c165be4366066b2b12c03a7a73261c",
"type": "mcq",
"definition": "<text>Suppose you want to predict a house's price as a function of its size. Your model is </text><text hasMath=\"true\">$$h_\\theta(x) = \\theta_0 + \\theta_1(\\text{size}) + \\theta_2\\sqrt{(\\text{size})}$$. </text><text hasMath=\"true\">Suppose size ranges from 1 to 1000 (feet$$^2$$). You will implement this by fitting a model</text><text hasMath=\"true\">$$h_\\theta(x) = \\theta_0 + \\theta_1x_1 + \\theta_2x_2$$. </text><text>Finally, suppose you want to use feature scaling (without mean normalization).</text><text hasMath=\"true\">Which of the following choices for $$x_1$$ and $$x_2$$ should you use? (Note: $$\\sqrt{1000} \\approx 32$$.)</text>",
"options": [
{
"id": "2bd1895e54ce19e404af4bdc16e26776",
"content": "<text hasMath=\"true\">$$x_1 = \\text{size},\\ x_2 = 32\\sqrt{(\\text{size})}$$</text>"
},
{
"id": "be2141036e13daf0deeb0038ea5e741e",
"content": "<text hasMath=\"true\">$$x_1=32(\\text{size}),\\ x_2=\\sqrt{(\\text{size})}$$</text>"
},
{
"id": "b1b92acc82e8f1255bdb2b7e96baf44b",
"content": "<text hasMath=\"true\">$$x_1 = \\frac{\\text{size}}{1000},\\ x_2 = \\frac{\\sqrt{(\\text{size})}}{32}$$</text>"
},
{
"id": "81ae16d803376b3bbb50d3df1185dfaa",
"content": "<text hasMath=\"true\">$$x_1 = \\frac{\\text{size}}{32},\\ x_2=\\sqrt{(\\text{size})}$$.</text>"
}
],
"answer": [
"b1b92acc82e8f1255bdb2b7e96baf44b"
],
"explanation": "",
"videoCuePoint": 395100
}
]
},
{
"videoId": "IsEnAb1-EeSqHiIAC2idzw",
"questions": [
{
"id": "e6c165be4366066b2b12c03a7a73261c",
"type": "mcq",
"definition": "<text>Suppose you have the training in the table below:</text><table rows=\"4\" columns=\"3\"><tr><td><text hasMath=\"true\">age ($$x_1$$)</text></td><td><text hasMath=\"true\">height in cm ($$x_2$$)</text></td><td><text hasMath=\"true\">weight in kg ($$y$$)</text></td></tr><tr><td><text>4</text></td><td><text>89</text></td><td><text>16</text></td></tr><tr><td><text>9</text></td><td><text>124</text></td><td><text>28</text></td></tr><tr><td><text>5</text></td><td><text>103</text></td><td><text>20</text></td></tr></table><text>You would like to predict a child's weight as a function of his age and height with the model </text><text hasMath=\"true\">$$\\text{weight} = \\theta_0 + \\theta_1\\text{age}+\\theta_2\\text{height}$$.</text><text hasMath=\"true\">What are $$X$$ and $$y$$?</text>",
"options": [
{
"id": "2bd1895e54ce19e404af4bdc16e26776",
"content": "<text hasMath=\"true\">$$X=\\begin{bmatrix} 4 & 89 \\\\ 9 & 124 \\\\ 5 & 103 \\end{bmatrix},\\ y=\\begin{bmatrix}16\\\\28\\\\20\\end{bmatrix}$$</text>"
},
{
"id": "be2141036e13daf0deeb0038ea5e741e",
"content": "<text hasMath=\"true\">$$X=\\begin{bmatrix} 1 & 4 & 89 \\\\ 1 &9 & 124 \\\\ 1 & 5 & 103 \\end{bmatrix},\\ y=\\begin{bmatrix}1 & 16 \\\\ 1 & 28 \\\\ 1 & 20 \\end{bmatrix}$$</text>"
},
{
"id": "b1b92acc82e8f1255bdb2b7e96baf44b",
"content": "<text hasMath=\"true\">$$X=\\begin{bmatrix} 4 & 89 & 1 \\\\ 9 & 124 & 1 \\\\ 5 & 103 & 1 \\end{bmatrix},\\ y=\\begin{bmatrix}16\\\\28\\\\20\\end{bmatrix}$$</text>"
},
{
"id": "81ae16d803376b3bbb50d3df1185dfaa",
"content": "<text hasMath=\"true\">$$X=\\begin{bmatrix} 1 & 4 & 89 \\\\ 1 & 9 & 124 \\\\ 1 & 5 & 103 \\end{bmatrix},\\ y=\\begin{bmatrix}16\\\\28\\\\20\\end{bmatrix}$$</text>"
}
],
"answer": [
"81ae16d803376b3bbb50d3df1185dfaa"
],
"explanation": "",
"videoCuePoint": 524600
}
]
},
{
"videoId": "IsHDQr1-EeSqHiIAC2idzw",
"questions": []
},
{
"videoId": "Isfdyb1-EeSqHiIAC2idzw",
"questions": []
},
{
"videoId": "IsI4c71-EeSqHiIAC2idzw",
"questions": []
},
{
"videoId": "IsTQhL1-EeSqHiIAC2idzw",
"questions": []
},
{
"videoId": "IsVFtb1-EeSqHiIAC2idzw",
"questions": []
},
{
"videoId": "IsWT1r1-EeSqHiIAC2idzw",
"questions": []
},
{
"videoId": "IsePqL1-EeSqHiIAC2idzw",
"questions": []
},
{
"videoId": "IsdBh71-EeSqHiIAC2idzw",
"questions": [
{
"id": "2f34f3972ff9229b54de55e22962e138",
"type": "mcq",
"definition": "<text hasMath=\"true\">Suppose you have three vector valued variables $$u, v, w$$:</text><text hasMath=\"true\">$$u = \\begin{bmatrix}u_1\\\\u_2\\\\u_3\\end{bmatrix},\\ v = \\begin{bmatrix}v_1\\\\v_2\\\\v_3\\end{bmatrix},\\ w = \\begin{bmatrix}w_1\\\\w_2\\\\w_3\\end{bmatrix}$$.</text><text>Your code implements the following:</text><text>for j = 1:3,</text><text> u(j) = 2 * v(j) + 5 * w(j);</text><text>end</text><text>How would you vectorize this code?</text>",
"options": [
{
"id": "2988c087bd68e0b4ca5d6bd4d8af3f07",
"content": "<text>u = 2 * v' * v * w + 5 * w' * w * v; (where v' denotes the transpose of v)</text>"
},
{
"id": "c43e57ce66c7e4611bebdd6ad6b76c08",
"content": "<text>u = 2 * v + 5 * w</text>"
},
{
"id": "b1c3e83da4d479d56944caeea9508ec2",
"content": "<text>u = 5 * v + 2 * w</text>"
},
{
"id": "703cfb71ae7bdea8396b9440c3c1fa18",
"content": "<text>u = 2 + v + 5 + w</text>"
}
],
"answer": [
"c43e57ce66c7e4611bebdd6ad6b76c08"
],
"explanation": "",
"videoCuePoint": 787800
}
]
},
{
"videoId": "Isgr6r1-EeSqHiIAC2idzw",
"questions": [
{
"id": "70b8c6c56af273d8bfa4e170fcaf94e9",
"type": "mcq",
"definition": "<text>Which of the following statements is true?</text>",
"options": [
{
"id": "e88acd99c3d9dadf452a70e100c8ffbe",
"content": "<text>If linear regression doesn't work on a classification task as in the previous example shown in the video, applying feature scaling may help.</text>"
},
{
"id": "3b81892cd29fcccfdf48f51f15acd95b",
"content": "<text hasMath=\"true\">If the training set satisfies $$0 \\leq y^{(i)} \\leq 1$$ for every training example $$(x^{(i)},y^{(i)})$$, then linear regression's prediction will also satisfy $$0 \\leq h_\\theta(x) \\leq 1$$ for all values of $$x$$.</text>"
},
{
"id": "aa7fc313d0a3ebfa964b20833f25b5a5",
"content": "<text hasMath=\"true\">If there is a feature $$x$$ that perfectly predicts $$y$$, i.e. if $$y=1$$ when $$x\\geq c$$ and $$y=0$$ whenever $$x < c$$ (for some constant $$c$$), then linear regression will obtain zero classification error.</text>"
},
{
"id": "b830e967f7bf7ce1b0788c2e1800896a",
"content": "<text>None of the above statements are true.</text>"
}
],
"answer": [
"b830e967f7bf7ce1b0788c2e1800896a"
],
"explanation": "",
"videoCuePoint": 427500
}
]