Learn practical skills, build real-world projects, and advance your career
import tensorflow as tf
from tensorflow import keras
import matplotlib.pyplot as plt
import numpy as np
from tensorflow.keras.layers import Dense,Flatten,Conv2D,MaxPooling2D,Dropout
from tensorflow.keras.models import Sequential
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.datasets import cifar10
%matplotlib inline
plt.style.use('fivethirtyeight')
(X_train,y_train),(X_test,y_test)= cifar10.load_data()
print(type(X_train))
print(type(y_train))
print(type(X_test))
print(type(y_test))
<class 'numpy.ndarray'> <class 'numpy.ndarray'> <class 'numpy.ndarray'> <class 'numpy.ndarray'>
# Get the Shape
print(X_train.shape,y_train.shape)
(50000, 32, 32, 3) (50000, 1)
X_test.shape,y_test.shape
((10000, 32, 32, 3), (10000, 1))