| 
									
										
										
										
											2020-04-21 11:19:42 -04:00
										 |  |  | --- | 
					
						
							|  |  |  | id: 5e8f2f13c4cdbe86b5c72d98 | 
					
						
							| 
									
										
										
										
											2020-04-24 05:52:42 -05:00
										 |  |  | title: Creating a Convolutional Neural Network | 
					
						
							| 
									
										
										
										
											2020-04-21 11:19:42 -04:00
										 |  |  | challengeType: 11 | 
					
						
							|  |  |  | videoId: kfv0K8MtkIc | 
					
						
							| 
									
										
										
										
											2021-10-01 12:24:12 +08:00
										 |  |  | bilibiliIds: | 
					
						
							|  |  |  |   aid: 420605824 | 
					
						
							|  |  |  |   bvid: BV1p341127wW | 
					
						
							|  |  |  |   cid: 409131869 | 
					
						
							| 
									
										
										
										
											2021-01-13 03:31:00 +01:00
										 |  |  | dashedName: creating-a-convolutional-neural-network | 
					
						
							| 
									
										
										
										
											2020-04-21 11:19:42 -04:00
										 |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | # --question--
 | 
					
						
							| 
									
										
										
										
											2020-04-21 11:19:42 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ## --text--
 | 
					
						
							| 
									
										
										
										
											2020-04-21 11:19:42 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | Fill in the blanks below to complete the architecture for a convolutional neural network: | 
					
						
							| 
									
										
										
										
											2020-05-28 22:40:36 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ```py | 
					
						
							|  |  |  | model = models.__A__() | 
					
						
							|  |  |  | model.add(layers.__B__(32, (3, 3), activation='relu', input_shape=(32, 32, 3))) | 
					
						
							|  |  |  | model.add(layers.__C__(2, 2)) | 
					
						
							|  |  |  | model.add(layers.__B__(64, (3, 3), activation='relu')) | 
					
						
							|  |  |  | model.add(layers.__C__(2, 2)) | 
					
						
							|  |  |  | model.add(layers.__B__(32, (3, 3), activation='relu')) | 
					
						
							|  |  |  | model.add(layers.__C__(2, 2)) | 
					
						
							|  |  |  | ``` | 
					
						
							| 
									
										
										
										
											2020-05-28 22:40:36 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ## --answers--
 | 
					
						
							| 
									
										
										
										
											2020-05-28 22:40:36 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | A: `Sequential` | 
					
						
							| 
									
										
										
										
											2020-05-28 22:40:36 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | B: `add` | 
					
						
							| 
									
										
										
										
											2020-05-28 22:40:36 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | C: `Wrapper` | 
					
						
							| 
									
										
										
										
											2020-05-28 22:40:36 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | --- | 
					
						
							| 
									
										
										
										
											2020-05-28 22:40:36 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | A: `keras` | 
					
						
							| 
									
										
										
										
											2020-05-28 22:40:36 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | B: `Cropping2D` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | C: `AlphaDropout` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | A: `Sequential` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | B: `Conv2D` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | C: `MaxPooling2D` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## --video-solution--
 | 
					
						
							| 
									
										
										
										
											2020-04-21 11:19:42 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | 3 | 
					
						
							| 
									
										
										
										
											2020-04-21 11:19:42 -04:00
										 |  |  | 
 |