Skip to content

Instantly share code, notes, and snippets.

View mohammedouahman's full-sized avatar
🇵🇸
#StandWithPalestine

Mohammed Ouahman mohammedouahman

🇵🇸
#StandWithPalestine
View GitHub Profile
# Each label is an integer between 0 and 9:
print(train_labels)
len(train_labels)
class_names = ['T-shirt/top', 'Trouser', 'Pullover', 'Dress', 'Coat',
'Sandal', 'Shirt', 'Sneaker', 'Bag', 'Ankle boot']
fashion_mnist = tf.keras.datasets.fashion_mnist
(train_images, train_labels), (test_images, test_labels) = fashion_mnist.load_data()
@mohammedouahman
mohammedouahman / classify.py
Created November 17, 2021 18:07
import the fashion MNIST dataset directly from tensoflow
fashion_mnist = tf.keras.datasets.fashion_mnist
(train_images, train_labels), (test_images, test_labels) = fashion_mnist.load_data()
@mohammedouahman
mohammedouahman / classify.py
Created November 17, 2021 17:52
images classification
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt