A Journey From Biological to Artificial Neurons
Surprisingly, ANNs have been around for quite a while: they were first introduced back in 1943 by the neurophysiologist Warren McCulloch and the mathematician Walter Pitts. In their landmark paper,…
Bayesian Gaussian Mixture Models
Rather than manually searching for the optimal number of clusters, it is possible to use instead the BayesianGaussianMixture class which is capable of giving weights equal (or close) to zero…
SQL | Alias Operator
SQL Alias Syntax for Columns: Also read Alias Example Assume we have a table called “Persons” and another table called “Product_Orders”. We will give the table aliases of “p” and…
SQL | The LIKE Operator
SELECT column_name(s) FROM table_name WHERE column_name LIKE pattern LIKE Operator Example The “Persons” table: Now we want to select the persons living in a city that starts with “s” from…
Understanding DBSCAN Clustering Algorithm: Implementation in Python
Before we move on to Gaussian mixture models, let’s take a look at DBSCAN, another popular clustering algorithm that illustrates a very different approach based on local density estimation. This…
Using Clustering for Semi-Supervised Learning
Another use case for clustering is in semi-supervised learning, when we have plenty of unlabeled instances and very few labeled instances. Let’s train a logistic regression model on a sample…
Using clustering for image segmentation
Image segmentation is the task of partitioning an image into multiple segments. In semantic segmentation, all pixels that are part of the same object type get assigned to the same…
Accelerated K-Means and Mini-batch K-Means
Introduction Another important improvement to the K-Means algorithm was proposed in a 2003 paper by Charles Elkan. It considerably accelerates the algorithm by avoiding many unnecessary distance calculations: this is…
Implementation of K-Means Clustering in Machine Learning
Consider the unlabeled dataset represented in Figure below: you can clearly see 5 blobs of instances. The K-Means algorithm is a simple algorithm capable of clustering this kind of dataset…
What is Clustering? A Simple Approach
As you enjoy a hike in the mountains, you stumble upon a plant you have never seen before. You look around and you notice a few more. They are not…
What is Stacking of Models in Machine Learning?
The last Ensemble method we will discuss in this series is called stacking (short for stacked generalization). It is based on a simple idea: instead of using trivial functions (such…
Locally linear Embedding For Dimensionality Reduction in Machine Learning
Locally Linear Embedding (LLE) is another very powerful nonlinear dimensionality reduction (NLDR) technique. It is a Manifold Learning technique that does not rely on projections like the previous algorithms. In…
Web Development Project Guide for Freshers
Web Development Project Guide for Freshers Starting your journey as a web developer can be both exciting and challenging. To make the process smoother, here’s a detailed guide to beginner-friendly…
Letter Combinations of a phone number
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. A mapping of digits to letters…
3 Sum Closest | LeetCode
Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the…
RAG using Llama 2, Langchain and ChromaDB
Introduction Objective Use Llama 2.0, Langchain and ChromaDB to create a Retrieval Augmented Generation (RAG) system. This will allow us to ask questions about our documents (that were not included…
Finding the Top K Most Frequent Elements in an Array
Finding the top ( k ) most frequent elements in an array is a common question in coding interviews and a useful task in various applications like data analysis and…
Finding the Top K Largest Elements in an Array
In many coding interviews and real-world applications, finding the top ( k ) largest elements in an array is a common problem. This tutorial will guide you through three popular…
XGBoost: A Comprehensive Tutorial
Introduction: In the realm of machine learning algorithms, XGBoost stands tall as a powerhouse, renowned for its efficiency, effectiveness, and versatility. This tutorial aims to provide a thorough understanding of…
Counting Odd and Even Occurrences in an Array
Introduction: In programming, it’s common to encounter scenarios where you need to count the number of elements occurring an odd number of times and the number of elements occurring an…