Archive | Deep Learning with PyTorch

PyTorch Tutorial - How to Develop Deep Learning Models

PyTorch Tutorial: How to Develop Deep Learning Models with Python

Predictive modeling with deep learning is a skill that modern developers need to know. PyTorch is the premier open-source deep learning framework developed and maintained by Facebook. At its core, PyTorch is a mathematical library that allows you to perform efficient computation and automatic differentiation on graph-based models. Achieving this directly is challenging, although thankfully, […]

Continue Reading
y-k-qD2BYEkp3ns-unsplash

Training Logistic Regression with Cross-Entropy Loss in PyTorch

In the previous session of our PyTorch series, we demonstrated how badly initialized weights can impact the accuracy of a classification model when mean square error (MSE) loss is used. We noticed that the model didn’t converge during training and its accuracy was also significantly reduced. In the following, you will see what happens if […]

Continue Reading
Photo by <a href="https://unsplash.com/photos/tfBlExFIVTw">Egor Lyfar</a>. Some rights reserved.

Text Generation with LSTM in PyTorch

Recurrent neural network can be used for time series prediction. In which, a regression neural network is created. It can also be used as generative model, which usually is a classification neural network model. A generative model is to learn certain pattern from data, such that when it is presented with some prompt, it can […]

Continue Reading
Photo by <a href="https://unsplash.com/photos/la0WP7U3-AM">Johnny Wong</a>. Some rights reserved.

Handwritten Digit Recognition with LeNet5 Model in PyTorch

A popular demonstration of the capability of deep learning techniques is object recognition in image data. The “hello world” of object recognition for machine learning and deep learning is the MNIST dataset for handwritten digit recognition. In this post, you will discover how to develop a deep learning model to achieve near state-of-the-art performance on […]

Continue Reading