Posts

Showing posts with the label Pytorch

Machine Learning and Deep Learning Study Index

Advanced CNN dl2ai: Deep CNN (AlexNet) Chapter 7 Activation Function KDNuggets: Neural Network Foundations Explained, Activation Function Machine Learning Mastery: How to Choose Activation Function StatsExchange: Activation Function for First Layer Nodes in an ANN Activation Function in Neural Networks: Sigmoid, Tanh, ReLU, Leaky ReLU, Parametric ReLU, ELU, Softmax, GeLU | Medium Using Activation Functions in Neural Networks - MachineLearningMastery.com CNN Training a CNN from Scratch Padding, Stride Codebasics: Convolution Padding and Stride dl2ai: Padding and Stride Chapter 6.3 Deep Learning Deep Learning Illustrated, Part 3: Convolutional Neural Networks | by Shreya Rao | May, 2024 | Towards Data Science Deep Learning Illustrated, Part 4: Recurrent Neural Networks | by Shreya Rao | Jun, 2024 | Towards Data Science Decision Tree 11.1 - Construct the Tree | STAT 508 (psu.edu) Image Augmentation dl2ai: Image Augmentation Chapter 13 Nanonets: Data Augmentation Roboflow: Why and How to I...

Computing Loss in PyTorch

Image
How it works: How the implementation in PyTorch looks like:   Rule of thumb: The more accurate the network, the smaller the loss. reference: Datacamp's Introduction to Deep Learning with PyTorch

Using Softmax in Pytorch

Image
First thing, import torch and torch.nn In the next steps, define a random input tensor with the shape of (2,3). See the difference when softmax is applied on the dimension-0 (dim=0) and dimension-1 (dim=1). Hope this helps. reference:  https://pytorch.org/docs/stable/generated/torch.nn.Softmax.html