TensorFlow 면접 질문과 답변
Question: How do you implement early stopping in a TensorFlow model training process?Answer: Early stopping can be implemented using callbacks, such as tf.keras.callbacks.EarlyStopping. It monitors a specified metric and stops training if the metric does not improve after a certain number of epochs.Example: early_stopping = tf.keras.callbacks.EarlyStopping(monitor='val_loss', patience=3) model.fit(train_data, epochs=100, callbacks=[early_stopping]) |
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
도움이 되었나요? 예 아니요
Most helpful rated by users: