Posts

Showing posts from April, 2017

Natural Language Interface for Relational Database - What is it and How it can be made?

Motivation. Database management systems are are systems used for accessing and manipulating information. The data can be manipulated using a set of keywords following of syntax rules. To perform operations on the database, it is required to learn the structured query language(SQL) . Hence, a user who do not know SQL cannot directly access information from the database. Natural Language Interface for Database(NLIDB). What is it? It is a proposed solution to the problem of accessing information in a database using natural language like English, having no technical knowledge about language like database languages like SQL. It is a tool which can understand a user's query in natural language, convert it into appropriate SQL query, so that the user can get the required information from the database. Various approaches for building NLIDB. Symbolic or Rule based approach. This is the approach in which the translation from natural language to SQL is done using human-crafted

Research Paper Summary - A robust Modification on K Nearest Neighbor Classifier

Original Paper : A Modification of K Nearest Neighbor Classifier Authors : Hamid Parvin, Hoseinali Alizadeh, Befrouz Minati K - Nearest Neighbor Classifier KNN is one of the simplest classification algorithm that is used widely across the problems where there is little or no idea of prior distribution of the data. More about KNN can be learn from this or this . Here is a naive implementation of KNN from scratch. Take a look at it as it will improve your understanding about the internals of the algorithm. A cup of fact: You can tweet KNN's implementation from scratch. Here is one such implementation( not by me ) Modified K - Nearest Neighbor Classifier The main problem in KNN is that not all points or nearest neighbors have same importance. Also, when the dimensions of the data increases, the accuracy of KNN decreases ( curse of dimensionality). In this paper, the author has proposed a modification to tackle above problems by some pre-computation of dataset and ge

How they work - The 3 Magical Functions of Python : map, filter and lambda

Image
Python provides several keywords which enable a functional programming approach for python. These functions are all convenience features in that they can be written in Python fairly easily  and can be replaced by custom code with some more line of code. As most of the beginners to python are confused or do not efficiently use these features, I will here try to explain those features in a simple manner. LAMBDA : Lambda function also called anonymous function or unbounded function can be used as any normal function in python but without any name.Starting with the keyword lambda followed by parameters before the colon and return value after it. Syntax - lambda arguments : expression Ex: Getting any number modulo 3 ( of-course this can be done using simple %3 ) is equivalent to The above python expression can be stated as "declare a nameless function taking a parameter named x. Perform the operation x%3. The return value of this nameless function will by the result of