Category Archives: Uncategorized

Feature reduction with Random Forest

Lets say, we have 112 Features for classifying two classes, All the features might not be needed for correlated with class. The procedure which is employed to get rid of less discriminative features is called Feature Reduction. PCA, ICA and … Continue reading

Posted in Programming, Uncategorized | Leave a comment

Awesome pandas library

Pandas is important library in python language for data analytics. In this post, we will use pandas for our machine learning task, and appreciate the ease with which things get done. Let say we have data in text data, with … Continue reading

Posted in Programming, Uncategorized | Leave a comment

Scrap table from wiki

Scarpping table from wiki and saving it to .csv with python is damn easy, Its just matter of ten line code, Lets scrap table from two pages, page1: https://en.wikipedia.org/wiki/Oncogene page2: https://en.wikipedia.org/wiki/List_of_gene_prediction_software Fig1: Table from page1 Fig2: Code for scrapping table from page1 … Continue reading

Posted in Programming, Uncategorized | Tagged , , | Leave a comment

Custom made dictionary with Python

In this post, lets learn about custom made dictionary with python Requirements: BeautifulSoup, urllib2 library Vocabulary.com is excellent site, for improving vocabulary. But instead of browsing, if there is a way to grab  required data, for a set of words, … Continue reading

Posted in Programming, Uncategorized | Tagged | Leave a comment

Download YouTube videos in Python

Downloading videos from youtube is easier with python Requirements: Python, youtube_dl library Here’s the code,save it as .py and run it. Enter URL, with in ” __ ” Enter, and get link to download video

Posted in Programming, Uncategorized | Tagged | Leave a comment

Getting List of pdfs in a folder with Python

Sometimes, in research, one might rename pdf name as per their comfort, and when trying to review bulky amount of pdfs, it becomes difficult to identify the pdf, copy the name of pdf, copy multiple file names together, Here is … Continue reading

Posted in Programming, Uncategorized | Tagged , , | Leave a comment

Export numpy array to excel in Python

It is always easy to manipulate data on numpy array rather than dataframe. If the data you generated in array has to be exported to excel??? How to do this? Fig1: Array of data Python offers lot of excel libraries, … Continue reading

Posted in Programming, Uncategorized | Tagged , , | Leave a comment