Skip to main content

Posts

Showing posts from 2020

RECOGNITION OF HANDWRITTEN DIGITS(MNIST DATA) PART ONE USING PYTORCH

HELLO GUYS, IN THIS BLOG POST I WANT TO SHOW THE BASIC INTRO TO IDENTIFICATION OF HANDWRITTEN DIGITS USING PYTORCH MNIST DATA. MNIST DATA IS THE COLLECTION OF HANDWRITTEN DIGITS. MNIST CONTAINS 70,000 HANDWRITTEN DIGITS, 60,000 FOR TRAINING AND REMAINING 10,000 ARE FOR TESTING.  THE  IMAGES ARE GRAYSCALE AND 28x28 PIXELS. WE CAN DOWNLOAD THE DATASET USING THE CODE BELOW. Here, the parameters batch_size is kept to 64 so that the training images are grouped into 64 each and shuffle is kept to TRUE, such that each time we run the code it shuffles the data and returns an iterable with new groups of batch_size. As the trainloader is iterable, we are iterating through it and collecting the first batch of images and it's corresponding labels into images and labels respectively. Now, run the above code and see the output. you will see something like this. torch.Size([64, 1, 28, 28]) torch.Size([64])  It shows that there are 64 images with grayscale an...

GET UDEMY PAID COURSES FOR FREE

HELLO GUYS, welcome to my blog. Here, In this post, I will discuss how to get UDEMY PAID courses completely for FREE . AWESOME RIGHT! The majority of UDEMY authors release their courses for free to get initial reviews and users. After getting good ratings for their courses, then they will convert their free courses to paid ones. So, be first to know about their free courses and access them before they convert their free courses into paid ones. Go through the below links and search for your courses: https://www.real.discount/ https://www.discudemy.com/ JOIN THEIR WHATSAPP GROUP AND GET DAILY UPDATES OF THE FREE COUPONS: Real.discount Coupons #25 NOTE: ENROLL IN THE COURSES BEFORE THE EXPIRATION OF THE COUPONS. YOU WILL ALSO GET A COURSE COMPLETION CERTIFICATE AFTER COMPLETION OF THE COURSE.

HOW TO DOWNLOAD AND INSTALL PYTHON FOR WINDOWS

Hello guys. In this tutorial, I will be going to show you how to set up the python environment on your Windows. So, let us get started. STEP1: First, go to this link:  https://www.python.org/downloads/ STEP2: Then scroll down and click on the latest version of Python available. At the time of writing this blog, the latest version is Python 3.7.4 STEP3: After, clicking that you will get another page, in that scroll down until you find FILES... see the picture below... Click on the link according to your computer's configuration i.e., 64bit or 32 bit, now the .exe file will be downloaded...   Step 4:   Now, open the file and you will have an environment like the picture shown below, Make sure that you should add the Python to PATH so that you can work with python from CMD. After that click on Install Now To be installed it will take some time. After that go to the CMD and type python, it will show you the information about it ...

MUTABLE AND IMMUTABLE OBJECTS IN PYTHON AND THEIR MEMORY MANAGEMENT

Everything in Python is an object. There are two types of objects in Python Mutable Immutable Mutable objects are those whose value can be changed after their creation. An example of it is a  list. Immutable objects are those whose value cannot be changed after their creation. A well-known example of this is a tuple. Mutable objects: lists, sets, dictionaries Immutable objects: Tuples, integers, floats, strings, frozen sets Before going deep into this topic, we should know about the  id() function in Python. id() function in python: This function returns the identity of an object. This is guaranteed to be unique and constant for an object. The id of an object is created when the object is created. See below for examples. example1 :                                                          ...

MAP, LAMBDA AND SETS IN PYTHON

Hello guys, welcome to my blog. Here I am going to tell you about the map, lambda, and sets in python. MAP FUNCTION IN PYTHON: When working with iterables in the python-like lists, we use for loops to apply the operations on elements of the iterables, but we know that for loops in the python are quite slow. Don't worry, for this, we have MAP function in the python. Its syntax is map(fun,iterable) It creates a map object. The 1st argument in the map function is the operation we do on the elements of the iterable. The 2nd argument in it is iterable on which you perform the operation. The map function returns the list containing the elements on which the operation is done. Look at the below example: l1=[1,2,3] def func(x):     return 2*x l=list(map(func,l1)) print(l1) Output: [2,4,6] In the above example, the function func accepts the element and returns the double of the element. To perform this operation on an iterable we loop through it. But here we us...

CHATBOT WITH SPEECH RECOGNITION AND PYTTSX3 USING PYTHON

NOTE: VIEW THIS POST IN DESKTOP SITE FOR THE BEST EXPERIENCE Hello guys. Welcome to my blog. Here I will explain to you how to create a chatbot that has speech as it’s both input and also output. So, let us get started. In this tutorial, I am using some of the libraries in Python like SpeechRecognition, Pyaudio, Chatterbot et cetera. I am going to explain to you how to install these libraries and work with them one by one separately and at last how to integrate them. SPEECH TO TEXT At first, you have to install the Speech Recognition library. You should not use the Python3.7 version because it does not support speech recognition. I am using a 3.6 version for this tutorial. Now, you should install the speech recognition library from the command prompt. Use the following command. pip3.6 install SpeechRecognition Now, you should install PyAudio. First, you have to find the version of your Python and also the configuration of your machine. Open your cmd and type p...