List comprehensions, break-continue, exception handling in Python

As we have learned for loop to walk through a sequence, and do something with each item, at least read some value from it. There is a scenario, similar to what we saw with the last example in the for-loop introduction, that involves making a new list from the result of doing an operation on…

Read More

Top 40 Data Science Interview Questions and Answers 2022

1 – What is F1 score? F1 score is a measure of the accuracy of a model. It is defined as the harmonic mean of precision and recall. F1 score is one of the most popular metrics for assessing how well a machine learning algorithm performs on predicting a target variable. F1 score ranges from…

Read More

What is histogram equalizer? How does it work?

Histogram Equalizer is a computer vision technique that adjusts the luminosity levels of an image to make it more visually appealing. Histogram equalization is a process that lets us take an image and adjust the brightness levels so that each pixel in the image has a similar level of illumination. It does this by mapping…

Read More

The Future of AI & How It will Transform the World?

The future of AI technology is bright. It will affect our lives in many ways and it will change the way we live, work and play. The future is here, and it’s called artificial intelligence. Artificial intelligence is not just a passing fad or buzzword. It’s actually a revolutionary technology that will change the way…

Read More

Machine Learning Interview questions Part -3

1 – Explain the difference between Variance and R squared error? Variance is a statistical measure of the dispersion of a distribution. It is often used in statistics to measure how much variation or “dispersion” there is from the mean. Variance can be calculated as the average squared deviation from the mean, which for a…

Read More

How to Convert text into features?

In this chapter, we’re going to cover introductory to advanced feature engineering (text to features) styles. By the end of this chapter, you’ll be comfortable with the following recipes One Hot encoding Count vectorizer N- grams Hash vectorizer Term Frequency- Inverse Document Frequency (TF- IDF) Implementing word embedding Implementing fastText Now that all the text…

Read More

Image processing using Machine Learning

We begin this chapter by examining a number of of the foremost image process algorithmic rule, then march on to machine learning implementation in image processing. The chapter at a look is as follows: Feature Mapping using the SIFT algorithmic rule Suppose we’ve 2 pictures. One image is of a bench in an exceedingly park.…

Read More

Advance image processing using OpenCV

Blending two images Suppose you have two images and you want to blend them so that features of both images are visible. We use image registration techniques to blend one image over the second one and determine whether there are any changes. Let’s look at the code. Let’s look at some of the functions used…

Read More

Image processing with Scikit-image

Scikit image is a module that is used to do introductory image processing. Before we start let’s look at the description of a module. A module is a collection of a Python lines, classes, or functions. We can save complex and lengthy code inside different lines. To do this, we need to import files and use them…

Read More

How to use if else, while and for loops in python?

The if and else clause are used to structure our code with checks for conditions. The if statement is followed by an expression that we use to express a condition, and delimiters the so-called if block. The block is executed if and only if the expression evaluates to True. Example 1: By the way, even…

Read More