0% found this document useful (0 votes)
29 views1 page

CIFAR-10 CNN Tutorial for Beginners

This document is a Python notebook that uses convolutional neural networks (CNNs) to perform image classification on the CIFAR-10 dataset. It imports the CIFAR-10 data, preprocesses the images, defines a sequential CNN model with convolutional and max pooling layers followed by dense layers, compiles and trains the model over 100 epochs, and evaluates the trained model's performance using classification accuracy and confusion matrix.

Uploaded by

karan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

CIFAR-10 CNN Tutorial for Beginners

This document is a Python notebook that uses convolutional neural networks (CNNs) to perform image classification on the CIFAR-10 dataset. It imports the CIFAR-10 data, preprocesses the images, defines a sequential CNN model with convolutional and max pooling layers followed by dense layers, compiles and trains the model over 100 epochs, and evaluates the trained model's performance using classification accuracy and confusion matrix.

Uploaded by

karan
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

10/8/2020 cifar10 with CNN for beginer | Kaggle

 
from __future__ import print_function
cifar10 withkeras
import CNN for  41  Copy and Edit 75
beginerfrom [Link] import cifar10

from [Link]
Python notebook using data from import ImageDataGenerator
CIFAR 10 -from
[Link]
Recognition in Images
import Sequential
· 6,753 views · 4mo ago ·  gpu
from [Link] import Dense, Dropout, Activation, Flatte
n
from [Link] import Conv2D, MaxPooling2D
import os

import numpy as np

import seaborn as sns


import matplotlib
import [Link] as plt

from [Link] import confusion_matrix, classificatio


n_report
import itertools

%matplotlib inline

Using TensorFlow backend.

Let's setting the models hyperparameters and others global parameters.

In [2]:
batch_size = 32 # The default batch size of keras.
num_classes = 10 # Number of class for the dataset
epochs = 100
data_augmentation = False

2.2 Import and preproces of data

We load the data and split it between train and test sets

  
Notebook Input Comments

[Link] 1/1

You might also like