Monday, June 21, 2021

Understanding Recall and Precision in Simplest Way

This video talks about how to evaluate any Machine Learning classification model and what all matrices are available to do so. It contains very simple to follow examples along with calculations and brief overview of confusion matrix.

Monday, June 14, 2021

Building End-to-End Custom Image Classifier using Azure Custom Vision

This video talks about the complete flow of image classification, starting from image collection, image tagging/labelling, training classification model, evaluating the model, and testing the predictions using Prediction API. This complete flow relies on Azure Custom Vision service.

Detecting Vehicles in an Image using Azure Custom Vision Service

This video explains, how to start with object detection using Azure custom vision service. It talks about how one can detect cars and buses from any valid image along with some of the best practices about training the model. One will also learn about some of the limitations of detection API.

Monday, May 31, 2021

Getting Started with Image Analysis using Azure Cognitive Services

This is the very first video of this series and talks about what is image analysis, what image analysis can do, how to use Azure Cognitive Services to analyze any image, followed by C# code to achieve the image analysis results.

Automatically Shutdown the Azure VM using Automation Tasks Template

Want to learn, how to automatically shutdown your Azure Virtual Machine to save some money? Here you go:


Friday, May 21, 2021

Creating Virtual Environment for Python from VS Code

When we are talking about a term environment along with Python, it is a context in which our Python application runs, or we can say that the Python program runs. 

An environment consists of an interpreter and all the installed packages, which clearly means that one can have multiple environments on a single machine, or rather I would say, every Python application can have its own environment.

Now the question is, why do we need such environments? 

To know more about the virtual environment and how to create one using Visual Studio Code, have a look at my below video

Tuesday, May 18, 2021

Wednesday, May 5, 2021

Chat Application using Azure Web PubSub Service (Preview)

Azure Web PubSub service, as its name says, it is based on publish-subscribe pattern and enables us to build real-time web applications. 

Some of the popular examples where we can use this service is, for any chat-based applications, any collaboration application, like white boarding application. We can also use this service for any application which needs instant push notifications. In fact, there are many more example, we can think about. 

The best part is, we can use Azure Web PubSub service on all the platforms which supports WebSocket APIs and it allows up to 100 thousand concurrent connections at any point of time.

Components required to create a basic chat application:

  1. Instance of Azure Web PubSub Service
  2. Publisher application
  3. Subscriber application

To know about how to create and use these components, I’ve created a complete video demonstrating these: 

C# Code for Publisher and Subscriber:

Below is the C# code for the respective classes.

Publisher.cs

  1. var connectionString = "Your_ConnectionString_Here";  
  2. var hub = "Your_Hub_Here";  
  3. var serviceClient = new WebPubSubServiceClient(connectionString, hub);  
  4. while (true)  
  5. {  
  6.       Console.Write("Enter message: ");  
  7.       string message = Console.ReadLine();  
  8.       serviceClient.SendToAll(message);  
  9. }

Subscriber.cs

  1. var connectionString = "Your_ConnectionString_Here";  
  2. var hub = "Your_Hub_Here";  
  3.   
  4. // Either generate the URL or fetch it from server or fetch a temp one from the portal  
  5. var serviceClient = new WebPubSubServiceClient(connectionString, hub);  
  6. var url = serviceClient.GetClientAccessUri();  
  7.   
  8. using (var client = new WebsocketClient(url))  
  9. {  
  10.     client.MessageReceived.Subscribe(msg => Console.WriteLine($"Message received: {msg}"));  
  11.     await client.Start();  
  12.     Console.WriteLine("I'm connected.");  
  13.     Console.Read();  
  14. }  

Hope you enjoyed learning about Azure Web PubSub service.

Monday, May 3, 2021

401 vs 403 vs 409 - When to use What?

 This video explains the use of HTTP status codes 401, 403 and 409 along with an example.

Connecting Azure Account from Visual Studio Code

This video talks about how to connect to Microsoft Azure using Visual Studio Code and what all commands can be executed in order to interact with Azure.