0

while running this code I am getting error

mnist = tf.keras.datasets.mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data

this should run fine .

Anybody know how to resolve this? Please help me

Athira
  • 1,177
  • 3
  • 13
  • 35
BraveStone9
  • 53
  • 10

1 Answers1

0

I think the () are missing in load_data. So,

(x_train, y_train), (x_test, y_test) = mnist.load_data 

Should instead be:

(x_train, y_train), (x_test, y_test) = mnist.load_data()
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
seema negi
  • 16
  • 2