Skip to main content

Posts

Showing posts from March, 2025

CNN with MNIST using PyTorch

CNN with MNIST using PyTorch Implement a  CNN  using PyTorch for the  FashionMNIST  Dataset and  MNIST  Dataset for the following hyperparameter change: the epochs. Plot Accuracy for 2, 4, 6, 8, and 10 Epochs and print the sample images as per the source code. The following code contains only two Conv layers; in your design, you need to add one extra layer, make it 3, and perform the above experiment.  What is the minimum number of epochs for which the image prediction is maximum?  Implementing a CNN with PyTorch for MNIST and FashionMNIST: Hyperparameter Tuning with Epochs Introduction to CNNs with PyTorch, MNIST, and FashionMNIST Convolutional Neural Networks (CNNs) are a cornerstone of deep learning, especially for image classification tasks. In this blog post, we’ll explore how to implement a CNN using PyTorch for two popular datasets: MNIST (handwritten digits) and FashionMNIST (clothing items). We’ll enhance a basic CNN architecture by a...

How to Install NS-3.44 on Ubuntu 24.04: A Step-by-Step Guide

  Prerequisites for Installing NS-3.44 on Ubuntu 24.04 Before diving into the installation, ensure your system meets the following requirements: Operating System : Ubuntu 24.04 LTS Internet Connection : Required for downloading dependencies and NS-3 source code Disk Space : At least 5 GB of free space RAM : Minimum 4 GB (8 GB recommended for more extensive simulations) You’ll also need administrative access (sudo) to install packages. See the following video for the complete instructions: Step-by-Step Guide to Install NS-3.44 on Ubuntu 24.04 Follow these steps carefully to set up NS-3.44 on your system. Step 1: Update Your System First, ensure your Ubuntu 24.04 system is up to date. Open a terminal (Ctrl + Alt + T) and run: $ sudo apt update && sudo apt upgrade -y Step 2: Install Required Dependencies NS-3.44 requires several development tools and libraries. Install them with the following command: $ sudo apt install g++ python3 cmake ninja-build git gir1.2-goo...