单项选择题要对一批图片进行分类,下面几个神经网络的设计,最好的方案是()。
A.keras.Sequential([keras.Input(shape=(32,0)),keras.layers.Dense(64,activation=”relu”),keras.layers.Dense(128,activation=”relu”),keras.layers.Dense(10,activation=”softmax”)])
B.keras.Sequential([keras.layers.Conv2D(32,3,activation=”relu”),keras.layers.Flatten(),keras.layers.Dense(128,activation=”relu”),keras.layers.Dense(10,activation=”softmax”)])
C.keras.Sequential([keras.layers.Conv2D(32,3,activation=”relu”),keras.layers.MaxPooling2D((2,2)),keras.layers.Conv2D(64,3,activation=”relu”),keras.layers.MaxPooling2D((2,2)),keras.layers.Conv2D(64,3,activation=”relu”),keras.layers.Flatten(),keras.layers.Dense(128,activation=”relu”),keras.layers.Dense(10,activation=”softmax”)])
D.keras.Sequential([keras.layers.Conv2D(32,3),keras.layers.BatchNormalization(),keras.layers.Activation(“relu”),keras.layers.MaxPooling2D((2,2)),keras.layers.Conv2D(64,3),keras.layers.BatchNormalization(),keras.layers.Activation(“relu”),keras.layers.MaxPooling2D((2,2)),keras.layers.Conv2D(64,3,padding=’same’,activation=”relu”),keras.layers.Flatten(),keras.layers.Dense(128,activation=”relu”),keras.layers.Dropout(0.5)keras.layers.Dense(10,activation=”softmax”)])