Skip to content

simplewy/PyTorch---Python-Deep-Learning-Neural-Network-API

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

PyTorch---Python-Deep-Learning-Neural-Network-API

The Dogs vs. Cats dataset is a standard computer vision dataset that involves classifying photos as either containing a dog or cat. This classification is done by using the PyTorch module. In this tutorial, you will discover how to develop a convolutional neural network to classify photos of dogs and cats

  • Package Load
  • Prepare Dataset
  • Build the model
  • Train the model
  • Model Evaluation
  • Summary

Package Load

At first, we need to import some packages for implementation.

Prepare Dataset

Download the dataset and after that divide the training set into batches. Some popular datasets are included in packages.

Build the Model

For image classification convolutional neural network is more suitable. Therefore, this neural network contain two convolutional payers and three linear layers. The function for forwarding propagation has written.

Train the Model

After that, we will pass our training data to train our model so it will predict the outputs.

Model Evaluation

All process until here is the task to define the model. Now it is required to define the optimizer and loss function. Then, a confusion matrix has generated. Additionally, Tensorboard is also used to make graphs and histograms of various parameters

Analyze the Model's results

Now, by changing different hyper-parameters we can compare the accuracy and loss from tensorboard.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%