Skip to content

Knowledge Transfer

  • PyTorch
  • Keras
  • Flutter
  • TensorFlow
  • Pandas
  • Android
  • Contact Us
September 17, 2021

Feature extraction from an image using pre-trained PyTorch model

PyTorchadmin

The pre-trained model is “frozen” and only the weights of the classifier get updated during training. In this case, the convolutional base extracted all the features associated with each image

September 6, 2021

How to add L1, L2 regularization in PyTorch loss function?

Uncategorizedadmin

In this tutorial, we’ll discuss what regularization is and when and why it may be helpful to add it to our model.

August 21, 2021

Load custom image datasets into PyTorch DataLoader without using ImageFolder.

PyTorchadmin

PyTorch provides many classes to make data loading easy and code more readable. In this tutorial, we will see how to load and preprocess/augment custom datasets.

August 12, 2021

PyTorch Freeze Layer for fixed feature extractor in Transfer Learning

PyTorchadmin

Network would already be able to extract generic features from your dataset. The network will not have to learn to extract generic features from scratch.

August 5, 2021

How to use kernel, bias, and activity Layer Weight regularizers in Keras

Kerasadmin

It is sometimes desirable to use a separate penalty with a different coefficient for each layer of the network.

July 20, 2021

PyTorch K-Fold Cross-Validation using Dataloader and Sklearn

PyTorchadmin

You need to reset the weights of the model so that each cross-validation fold starts from some random initial state and not learning from the previous folds. You could call reset_parameters() on all child modules.

July 10, 2021

Micro and Macro Averages for imbalance multiclass classification

KerasPyTorchadmin

A macro-average will compute the metric independently for each class and then take the average hence treating all classes equally, whereas a micro-average will aggregate the contributions of all classes to compute the average metric.

June 26, 2021

Explain Pooling layers: Max Pooling, Average Pooling, Global Average Pooling, and Global Max pooling.

Deep Learningadmin

Global Average Pooling does something different. It applies average pooling on the spatial dimensions until each spatial dimension is one, and leaves other dimensions unchanged.

June 17, 2021

How to change the learning rate in the PyTorch using Learning Rate Scheduler?

PyTorchPragati

The optimal learning rate will be dependent on both your model architecture and your dataset. While using a default learning rate may provide decent results, you can often improve the performance or speed up training by searching for an optimal learning rate.

May 30, 2021

Filters, kernel size, input shape in Conv2d layer

KerasPragati

We don’t explicitly define the filters that our convolutional layer will use, instead parameterize the filters and let the network learn the best filters to use during training. We need to define “how many filters we’ll use at each layer”.

Posts navigation

Previous 1 … 3 4 5 … 21 Next

Recent Posts

  • How to use PyTorch gather function for indexing?
  • Access PyTorch model weights and bise with its name and ‘requires_grad value’
  • Use Image Dataset from Directory with and without Label List in Keras
  • Use Saved PyTorch model to predict single and multiple images.
  • What is the ideal batch size for the Keras Neural network?
  • Privacy Policy
Copyright © 2022 Knowledge Transfer All Rights Reserved.