TensorFlow & Keras
Starter code
import tensorflow as tf

# data structure: array of arrays
x = tf.constant([
[1., 2., 3.],
[4., 5., 6.]
])

print(x)
print(x.shape)
print(x.dtype)

# implements math operations
print('Sum', x+x)
print('Product', 5*x)
print('Transpose', tf.transpose(x))

# classification on MNIST fashion data
fashion_mnist = tf.keras.datasets.fashion_mnist
(train_images, train_labels), (test_images, test_labels) = fashion_mnist.load_data()
print(train_labels)
print(test_labels)