Aditya Chatterjee's Blog, page 57

January 25, 2023

Battle of the Titans: Comparing BART and BERT in NLP

Battle of the Titans: Comparing BART and BERT in NLP

In this article, we have explored the differences between two state of the art NLP models namely BERT and BART.

Table of contents:

IntroductionBackgroundComparisonSummaryConclusionIntroduction

Natural Language Processing (NLP) is a rapidly growing field that aims to enable machines to understand and generate human language. One of the most important tasks in NLP is language understanding, which involves analyzing and interpreting text. In recent years, transformer-based models such as BER...

 •  0 comments  •  flag
Share on Twitter
Published on January 25, 2023 18:57

Calculator Console Application in Java

We will develop a Calculator Console Application in Java Programming Language that uses the previous result in the next calculation and includes Shunting Yard Algorithm.

We'll discuss:

IntroductionFeaturesUnderstanding the Shunting Yard AlgorithmHow to Implement the Shunting Yard Algorithm?Calculator Logic in Java
main() methodevaluate() methodhasPrecedence() methodapplyOp() method
Working of evaluate() methodNeed of hasPrecedence() methodFurther ImprovementsConclusion
Introdu...
 •  0 comments  •  flag
Share on Twitter
Published on January 25, 2023 18:54

Techniques to detect Deepfake videos

Hello everyone, Today we are going to discuss one of the most morally sensitive subject in Artificial Intelligence world which are DeepFake and how we try to detect the deep fake from real.

Table of Contents:

Deepfake and its Generation.Problems of Deepfakes.Deepfake Detection using MesoNet-4.Datasets used.Other techniques.

2023_01_27_0ta_Kleki-min.

1. Deepfake and its Generation :

We can define tge deepfake as realistic-looking falsified images and videos created by AI algorithms specially after the strong devel...

 •  0 comments  •  flag
Share on Twitter
Published on January 25, 2023 18:43

Cheatsheet for sorting algorithms

This is the complete cheatsheet for all the important sorting algorithms that comprises that will act as a summary of each concepts including time complexity, key weakness and strengths.

Table of contents:

Comparison Based SortingNon-comparison Based SortingHybrid SortingComparison Based Sorting

Comparison-based sorting is a method of sorting elements in an array or list by repeatedly comparing pairs of elements and swapping them if they are not in the correct order.

It uses comparison oper...

 •  0 comments  •  flag
Share on Twitter
Published on January 25, 2023 18:41

Basic Ruby on Rails web App for static webpage

In this article, we will cover basics of Ruby on Rails (RoR) by creating a simple web application tutorial with a single static webpage.

Installing Rails

To install ruby on rails on your machine kindly follow rails guide

Creating first rails project

On this tutorial we will create a rails project with the name blogApp. I will show you how to create your first rails project with a postgreSQL and mySQL. We will run all our commands using gitbash terminal.

MySQL
If you want to use MySQL with your r...

 •  0 comments  •  flag
Share on Twitter
Published on January 25, 2023 09:40

Assign Cookies problem

Assign cookies problem is a popular coding interview question which is mostly solved using greedy algorithm. Here, you will be given a list of children/siblings and a list of cookies with their sizes. Your goal is to maximize the number of children/siblings you can content with your cookies and output the number. If you want to know how to solve this problem, this article is for you.

Table of contents:

Problem StatementGreedy Algorithm ApproachExamine few examplesSolving the ProblemTime and...
 •  0 comments  •  flag
Share on Twitter
Published on January 25, 2023 09:38

January 24, 2023

Multi-thread C++ program to find all prime numbers < N

In this article, we have developed a Multi-thread C++ program to find all prime numbers

Introduction

There are many ways to generate prime numbers.

In this article we will focus on the Sieve or Eratosthenes, which has been implemented in this article too.

The downsize of this approach is that for each number, the algorithm waits to finish the marked numbers of the predecessor prime number;

Could we do that in parallel ?

A way of implementation

My approach is to use a matrix with N lines and 2 c...

 •  0 comments  •  flag
Share on Twitter
Published on January 24, 2023 06:24

January 23, 2023

Random Password Generator in C

In this article, we are going to build a random password generator in C Programming Language.

Define the Problem

Write a function in C that takes an integer as input and provide a string of certain length of pseudorandom characters as the output. The goal is to let the output meet some basic security requirement, which includes a certain length and the character set. To achieve this, we first want the output to be "random" and unique each time. we also want the function to have as many output as...

 •  0 comments  •  flag
Share on Twitter
Published on January 23, 2023 19:40

January 22, 2023

Setprecision in C++

In this article, we will be discussing about Setprecision in C++ in detail along with C++ code examples.

Contents:

Introduction to SetprecisionPropertiesSyntaxParameterReturn ValueProgram CodeExplanationComparision with other functionQuizIntroduction

The setprecision() method is present in the iomanip library.It allows the user to obtain a float or double data type's accurate value
With the help of this function, the user can get the precise value of a float or double data type.

The s...

 •  0 comments  •  flag
Share on Twitter
Published on January 22, 2023 08:11

Self-attention in Transformer

Hello everybody, today we will discuss one of the revolutionary concepts in the artificial intelligence sector not only in Natural Language Processing but also nowadays in the Computer Vision, which is the Transformers and the heart of it Self-Attention.

2023_01_21_0pq_Kleki-min

Table of Contents :1. Before transformers.2. Attention is all you need.3. Self-Attention.4. Multi head attention.5. Multiple encoder and decoder.6. attention vs self-attention vs multi-head attention.7. Application.

In our journey today ...

 •  0 comments  •  flag
Share on Twitter
Published on January 22, 2023 08:09