下面是一个简单的全连接层模型示例,使用 Python 和 Keras 来编写:
from keras.models import Sequential
from keras.layers import Dense
# Create a sequential model
model = Sequential()
# Add a dense layer with 128 units and input shape (784,)
model.add(Dense(128, activation='relu', input_shape=(784,)))
# Add another dens