Aditya Chatterjee's Blog, page 201

June 19, 2020

Disadvantages of CNN models

Disadvantages of CNN models

CNN (Convolutional Neural Network) is the fundamental model in Machine Learning and is used in some of the most applications today. There are some drawbacks of CNN models which we have covered and attempts to fix it.


In short, the disadvantages of CNN models are:



Classification of Images with different Positions
Adversarial examples
Coordinate Frame
Other minor disadvantages like performance

These disadvantages lead to other models/ ideas like Capsule neural network. We have explained the poi...

 •  0 comments  •  flag
Share on Twitter
Published on June 19, 2020 11:13

Advancing AIML to build a chatbot

Before starting this, it is highly recommended the you go through the article Getting Started with AIML at OpenGenus. It will set you foundations right to understand this better.


In this article, we have explored some advanced concepts in AIML (Artificial Intelligence Markup Language) such as sets, maps, the '$' wildcard, loops, Rich Media Elements, buttons, hyperlinks, formatting and much more.


Now let us get started!


Sets and Maps

If you code in any other language, or are familiar with mathem...

 •  0 comments  •  flag
Share on Twitter
Published on June 19, 2020 07:51

All about Python Dictionary

In this article, you will learn everything about Python dictionaries which is an useful in-built data structure frequently used to handle data.


Dictionaries are unordered mapping for storing items. Each item has key-value pair. Instead of storing objects in ordered sequence, like in List, dictionaries uses key-value pair to store objects. This allow users to quickly search for values without knowing index location.


Properties of Dictionary Keys:



Dictionaries are mutable, which means we can cha...
 •  0 comments  •  flag
Share on Twitter
Published on June 19, 2020 04:05

June 18, 2020

GraphQL Server with Node.JS

GraphQL is defined as a query language for APIs. With the help of graphQL, we can write queries for the data received. It is explained as Front-End focussed API but the fact is that, it is implemented on the server side. GraphQL enables us to describe the data rather than optimizing and implementing it.


A GraphQL server is a server side implementation of GraphQL. It provides the GraphQL data as an API that is needed by frontend applications.

We will implement GraphQL and GraphQL server from a m...

 •  0 comments  •  flag
Share on Twitter
Published on June 18, 2020 15:33

June 17, 2020

Production Process Manager (PM2) for Node.JS

PM2 is an open-source, advances, and efficient production process manager for applications that are built in Node.JS. PM2 comes with the built-in load balancer. It allows the monitoring of the application. It allows the user to reload the application without service interruption. It supports auto restart with efficient management of applications, services, processes and the facilitation of system admin tasks.


Features

It allows the application to be executed continuously without any interrupti...
 •  0 comments  •  flag
Share on Twitter
Published on June 17, 2020 03:04

Differences between CNN and RNN

CNN (Convolution Neural Network) and RNN (Recurrent Neural Network) are two core Machine Learning models and are based on different fundamental ideas. In this article, we have explored the differences between CNN and RNN in depth.


Introduction

Deep learning is a subfield of machine learning that deals with algorithms that are inspired from the structure, function and workings of the human brain. Artificial neural networks (ANN) are computing systems that are used in deep learning to enable mach...

 •  0 comments  •  flag
Share on Twitter
Published on June 17, 2020 02:16

June 16, 2020

First Unique Character in a String

This problem is one of the competitive questions dealing with strings, so as indicated by the title we need to find first unique i.e non-repeating character in a given string and return the index or else if no such character exists we return -1.

Note: We are considering only lowercase, if asked with uppercase or camelcase full string can be converted to lowercase.


Example :


Input : opengenus
Output : 0
# unique character ' O ' at position zero

Input : hellhell
Output : -1
# no unique character...
 •  0 comments  •  flag
Share on Twitter
Published on June 16, 2020 06:06

Reverse alternate groups of K nodes in a Singly Linked List

We are given a pointer to the head of a singly Linked List and you have to write a function to reverse the elements of the given singly Linked List in alternate groups of K nodes. Once the operation is performed, pointer to the head of the Linked List must be returned from the function.


Input: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> 10
and
k = 3

Output: 3 -> 2 -> 1 -> 4 -> 5 -> 6 -> 9 -> 8 -> 7 -> 10

In the above example, k is equal to 3. Therefore we are required to reverse the elemen...

 •  0 comments  •  flag
Share on Twitter
Published on June 16, 2020 05:22

Covariant Return Type in Java

Covariant return type in an Object oriented programming language means that the return type of any method can be replaced by a narrower type when it is overridden in the subclass or child class. We have explored it in Java in depth.


Covariant return type is based on the Liskov substitution principle. This is a principle in Object oriented programming which states that, in a program, if X is a subtype of Y, then the objects of type Y may be replaced with objects of type X that means an object of...

 •  0 comments  •  flag
Share on Twitter
Published on June 16, 2020 04:36

June 15, 2020

Edge Detection using Laplacian Filter

Edge Detection using Laplacian Filter

Laplacian Filter (also known as Laplacian over Gaussian Filter (LoG)), in Machine Learning, is a convolution filter used in the convolution layer to detect edges in input.


Ever thought how the computer extracts a particular object from the scenery. How exactly we can differentiate between the object of interest and background.

Well a simple baseline answer could be: Edge Detection.


Before diving into the mechanics of it, let’s understand why specifically edge detection.


Try and look around you ...

 •  0 comments  •  flag
Share on Twitter
Published on June 15, 2020 10:32