Google News
logo
Keras - Quiz(MCQ)
Which of the following is the correct syntax for importing Keras?
A)
import keras
B)
from keras import *
C)
import tensorflow.keras
D)
All of the above

Correct Answer :   import tensorflow.keras


Explanation : While “import keras” is also a valid syntax, it is recommended to use “import tensorflow.keras” because Keras is now part of the TensorFlow library.

Advertisement