💪 Today I Learned

Deep Learning

  • mnist DNN architecture

  • define model

    model = Sequential()
    model.add(Flatten(input_shape=(28, 28)))
    model.add(Dense(128, activation='relu'))
    model.add(Dropout(rate=0.4))
    model.add(Dense(64, activation='relu'))
    model.add(Dense(32, activation='relu'))
    model.add(Dense(10, activation='softmax'))
    
  • compile model

    adam = optimizers.adam(lr=learning_rate)
    model.compile(loss='categorical_crossentropy', 
                optimizer=adam, metrics=['accuracy'])
    

🏃 한마디

11주차 딥러닝 과제 끝.