## [Python] Find indices of elements in a list or array

There are many ways to find indices of a given list of elements in a big list. Some methods are slow if the list that you need to scan is huge, and some do not return indices in the correct order. You should be aware of different approaches so that you can use one of…

## [Fix] WordPress database error: wpmailsmtp_tasks_meta doesn’t exist

Today, while checking the error.log file of my domain, I found many lines for an error “wpmailsmtp_tasks_meta doesn’t exist” in the file. I had the free version of the WordPress plugin ‘WP Mail SMTP‘, which I deleted after moving my website to a new domain. I had also deleted two related tables, wpmailsmtp_debug_events and wpmailsmtp_tasks_meta….

## [Python] Running a decision tree classifier on breast cancer

Decision Tree (DT) is one of the supervised learning methods used for classification and regression. It is considered a white-box model as the trained model can easily be explained by boolean logic. The goal of the DT algorithm is to create a model that predicts the value of a target variable by learning simple decision…

## [Python] Running regression predictive model on California housing dataset

In this post, I will show how you can run a predictive regression model on a given dataset. The regression problem differs from the classification problem. In a classification problem, you are required to predict a discrete class label (or class probability) for given samples in data. On the other hand, you predict a continuous/integer…

## Probability density function (pdf) estimation using Gaussian kernels

Introduction “Parametric” and “non-parametric” are two broad categories of statistical procedures. Parametric statistical procedures assume the population’s distribution (e.g., normal distribution) from which the sample was taken. It relies on the assumed distribution parameters (the means and standard deviations). If the data deviates strongly from the assumptions of the parametric methods, such techniques can lead…

## Linear classifier using Stochastic Gradient Descent (SGD) learning

Gradient descent (GD) is an optimization technique used in many learning algorithms (e.g., backpropagation); it does not correspond to a specific family of machine learning models. The gradient descent search repeatedly updates the parameters/feature weights until it finds parameters that minimize the error. Since the gradient descent method uses the whole training set to compute…

## [Tips] How to find correct answers to Microsoft “Bing Lightspeed Quiz” questions

Every Wednesday, the Bing Quiz that appears on your Bing homepage is known as “Lightspeed Quiz“. They ask four questions in this quiz, each carrying 10 points. Like the “This or That” quiz, you lose points if you click on the wrong answer in the “Lightspeed Quiz”. So, to score 40/40, you need to answer…

## [Tips] How to find correct answers to Microsoft “Bing Supersonic Quiz” questions

Every Tuesday, Microsoft posts “Supersonic Quiz” for Bing users. In this quiz, they ask three questions. Each question comes with five correct answers and 2-3 incorrect answers. “Supersonic Quiz” is one of those Bing Quizzes where you do not lose any point for wrong answers. Microsoft’s only goal is to get users’ clicks for some…