-1
如果我的特徵集包含5個長度爲8的矢量,我如何創建多類分類的深度學習模型?功能集看起來像這樣功能= [[0.34,0.67,0.87,..] [0.67,0.87,0.88 ....] [] [] [],...]如何以向量作爲輸入來構建用於深度學習的模型?
model = Sequential()
model.add(Dense(8, input_dim=40, activation='relu'))
model.add(Dense(33, activation='softmax'))
model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])