Aditya Chatterjee's Blog, page 77

August 12, 2022

LASSO using ADMM

LASSO is the acronym for Least Absolute Shrinkage and Selection Operator. Regression models' predictability and interpretability were enhanced with the introduction of Lasso. Therefore, a thorough understanding of mathematics will be useful for ML applications. Using ADMM, we may investigate this solution.

Table of contents

IntroductionMachine Learning ContextSolving the LASSO Problem using ADMMImplementationIntroduction

LASSO is often associated with it performing the choices of a smaller...

 •  0 comments  •  flag
Share on Twitter
Published on August 12, 2022 14:49

Least Absolute Deviation using ADMM

Least Absolute Deviation (LAD) is a powerful approach for solving optimization problems with good tolerance to outliers. Hence solving it to obtain a practicably applicable form is essential to take advantage of its theoretical prowess. For a better understanding, it is advised to have a good grasp of ADMM.

Table of contents

IntroductionMachine Learning ContextSolving the LAD Problem using ADMMImplementationIntroduction

The names "least absolute deviation" (LAD), "least absolute errors" (L...

 •  0 comments  •  flag
Share on Twitter
Published on August 12, 2022 14:41

August 7, 2022

Power Set of String in Lexicographic order

In this article, we have explored what is the meaning of Power Set of String and the algorithm to generate Power Set of String in Lexicographic order.

Table of contentsPower SetLexicographic orderWhat is Power set of string in Lexicographic order?AlgorithmComplextiyPower Set

We are all familiar with term "SET" at somewhere, probably in set theory (or in mathematics).
What is set? The answer is "It is a collection of well defined unordered distinct objects".
Example:

The collection of al...
 •  0 comments  •  flag
Share on Twitter
Published on August 07, 2022 04:21

Sentiment Analysis with Naive Bayes Classifier Built from Scratch

In this article, we will implement a Naive Bayes classifier from scratch to perform sentiment analysis.

Table of ContentsOverview of Sentiment AnalysisOverview of Bayes' Theorem and How it Applies to Sentiment AnalysisOverview of Naive Bayes for Sentiment AnalysisDatasetInstallation and SetupCalculating Word FrequencyCalculating Probabilities and Implementing the ClassifierTesting and ResultsConclusionOverview of Sentiment Analysis

Sentiment Analysis is the process of classifying whe...

 •  0 comments  •  flag
Share on Twitter
Published on August 07, 2022 04:19

August 5, 2022

Directed vs Undirected Graph

Reading time: 10 minutes

In this article, we have explained the differences between Directed and Undirected Graphs based on different attributes such as adjacency matrix, entropy and much more.

Before we start with the problem at hand we should first recall what graphs are.
Graphs are non linear data structure that enables us to viusalise structure of objects connected using links. Thre are two main components of a graph namely-

Nodes - The vertices that represent objects.Edges - The lines tha...
 •  0 comments  •  flag
Share on Twitter
Published on August 05, 2022 19:09

Different ways to pause a program in C++

In this article, we are going to learn about the different ways to pause a program in C++. With the help of this method or function, you will be able to pause any C++ program during execution.

A program is used to pause when a user wants to input or read some important data. The Different Pause method provides some time so the user can read data or instructions properly and choose the next action. In other words, the pause () method makes the software more readable and easier to use.

As C++ is t...

 •  0 comments  •  flag
Share on Twitter
Published on August 05, 2022 19:04

August 1, 2022

Convert Binary to Hexadecimal, Octal, Decimal

In this article, we will discuss how we can convert a binary number to a hexadecimal, octal, and decimal number.

Table of contents:

How to convert from Binary to HexadecimalHow to convert from Binary to OctalHow to convert from Binary to Decimal

Let us get started with discussing how different types of numerical systems such as hexadecmial, octal, and decimal can be obtained from a binary number through conversion.

How to convert from Binary to Hexadecimal?

Step 1: Seperate your binary numbe...

 •  0 comments  •  flag
Share on Twitter
Published on August 01, 2022 09:18

Iterative post-order traversal

In this article, we have explained how to do Iterative post-order traversal of a Binary Tree using 3 different techniques along with complete implementation.

Basics:

A binary search tree is a tree data structure where the key values of nodes in the left subtree are smaller than the key value of the root and the values of nodes in the right subtree are greater than the key value of the root.A tree traversal is visiting all the nodes in the tree exactly once. A post-order traversal is traversing...
 •  0 comments  •  flag
Share on Twitter
Published on August 01, 2022 09:14

Snowflake

Snowflake

Snowflake
Table of contents

History of snowflakeSnowflake Data Cloud ArchitectureAdvantages of SnowflakeSnowflake clientsOther Cloud Data service alternativesHistory of Snowflake

Snowflake is a cloud computing based data warehousing company. It provides cloud based storage and analytics services as SaaS (Software as a Service). The company was founded by Benoit Dageville and Thierry Cruanes in July 2012. The company has allowed businesses and organization to harness the power of vast amounts of da...

 •  0 comments  •  flag
Share on Twitter
Published on August 01, 2022 09:08

ADMM - Alternating Direction Method of Multipliers

Convex optimization can be used to formulate many of the latest issues in statistics and machine learning. It is becoming more crucial to be able to tackle issues with a very large number of features, training samples, or both as a result of the increase in size and complexity of modern datasets. Therefore, it is either essential or at the very least extremely desired that these datasets be collected or stored decentralizedly, along with the associated distributed solution techniques. Distribute...

 •  0 comments  •  flag
Share on Twitter
Published on August 01, 2022 09:06