Google News
logo
Keras - Quiz(MCQ)
Which of the following is the correct syntax for training a Keras model?
A)
model.fit(X_train, y_train, epochs=10, batch_size=32)
B)
model.train(X_train, y_train, epochs=10, batch_size=32)
C)
model.fit_data(X_train, y_train, epochs=10, batch_size=32)
D)
model.train_on_data(X_train, y_train, epochs=10, batch_size=32)

Correct Answer :   model.fit(X_train, y_train, epochs=10, batch_size=32)


Explanation : The correct syntax for training a Keras model is “model.fit(X_train, y_train, epochs=10, batch_size=32)”.

Advertisement