Posts

Graph Analysis(Part-1)

Image
  Graph Mining   Graph Mining  is the set of tools and techniques used to  (a) analyze the properties of real-world graphs,  (b) predict how the structure and properties of a given graph might affect some application, (c) develop models that can generate realistic graphs that match the patterns found in real-world graphs of interest. Important Terms: 1. Co-authorship networks-  Co-authorship is a form of association in which two or more researchers jointly report their research results on some topic. Therefore, co-authorship networks can be viewed as social networks encompassing researchers that reflect collaboration among them. Researchers are represented by nodes in co-authorship networks. 2. Citation network-  a  directed graph  in which each  vertex  represents a document and in which each edge represents a  citation  from the current publication to another. 3.  Polarization-  4....

MFCC for Audio Extraction

Image
  Audio Features MFCC -  Mel-frequency cepstral coefficients ( MFCCs ) are coefficients that collectively make up an MFC. They are derived from a type of cepstral representation of the audio clip. Mel Spectogram -  A  mel spectrogram  is a spectrogram where the frequencies are converted to the mel scale. Audio Data Domain There are two different domains :- 1.  Time domain   The major parts of Time Domain are Sampling and Quantization. Sampling  means  measuring the instantaneous values of continuous-time signal in a discrete form.  Audio wave is a continuous signal. First we have to consider a sampling frequency (Fs -  how many data points we are storing for audio at a particular point).  2.   Frequency domain The Frequency Domain refers to the analytic space in which mathematical functions or signals are conveyed in terms of frequency, rather than time. For example, where a time-domain graph may display changes over ...

Deploying ML Model using Flask

Image
  Why Flask? Flask is a Python-based microframework used for developing small scale websites. Flask is very easy to make Restful API’s using python. Easy to use. Built in development server and debugger. Integrated unit testing support. RESTful request dispatching. Extensively documented.   Project Structure   This project has four parts : model.py — This contains code for the machine learning model to predict sales in the third month based on the sales in the first two months. app.py — This contains Flask APIs that receives sales details through GUI or API calls, computes the predicted value based on our model and returns it. request.py — This uses requests module to call APIs defined in app.py and displays the returned value. HTML/CSS — This contains the HTML template and CSS styling to allow user to enter sales detail and displays the predicted sales in the third month. Serializing/De-Serializing In simple words serializing is a way to write a python object on the disk...

Supervised Learning(Part-10)

Image
  Genetic Algorithm Genetic Algorithms(GAs) are adaptive heuristic search algorithms that belong to the larger part of evolutionary algorithms. Genetic algorithms are based on the ideas of natural selection and genetics. These are intelligent exploitation of random search provided with historical data to direct the search into the region of better performance in solution space. They are commonly used to generate high-quality solutions for optimization problems and search problems. Genetic algorithms simulate the process of natural selection which means those species who can adapt to changes in their environment are able to survive and reproduce and go to next generation. In simple words, they simulate “survival of the fittest” among individual of consecutive generation for solving a problem. Each generation consist of a population of individuals and each individual represents a point in search space and possible solution. Each individual is represented as a string of character/inte...