Home » Archive

Articles tagged with: python

Python, Recommender System »

[2 May 2016 | One Comment]

python-recsys is a Python Library for implementing a Recommender System.
Currently, python-recsys supports two Recommender Algorithms: Singular Value Decomposition (SVD) and Neighborhood SVD.

Python, Recommender System »

[7 Mar 2016 | 3 Comments]

Crab as known as scikits.recommender is a Python framework for building recommender engines integrated with the world of scientific Python packages (numpy, scipy, matplotlib).
Currently, Crab supports two Recommender Algorithms: User-based Collaborative Filtering and Item-based Collaborative Filtering.

Python »

[22 Feb 2016 | No Comment]

In this article, I will be showing how to read data from a JSON file and write data to a new JSON file using Python programming language.
Suppose, I have the following JSON data which is saved in a file named sample-1.json.

Python »

[15 Feb 2016 | No Comment]

In this article, I will be showing how to read data from a CSV file and write data to a new CSV file using Python programming language.
Here’s a scenario: Suppose, I have a CSV file with 3 columns (user_id, item_id, and star_rating). It has data of 100 users. Each user has rated 20 different items. So, altogether there are 100 * 20 = 2000 entries in the CSV file.

Python »

[8 Feb 2016 | No Comment]

This article deals with plotting line graphs with Matplotlib (a Python’s library).
Below is the data which we will use to plot the bar chart. The data is saved in a CSV file named result3-blog.csv.

Python »

[1 Feb 2016 | No Comment]

This article deals with plotting line graphs with Matplotlib (a Python’s library).
In the article Machine Learning & Sentiment Analysis: Text Classification using Python & NLTK, I had described about evaluating three different classifiers’ accuracy using different feature sets. In this article, I will be using the accuracy result data obtained from that evaluation.
Below is the result data which we will use to plot line graph. The data is saved in a CSV file named result4-accuracy-blog.csv.

Machine Learning, Natural Language Processing (NLP), Python, Sentiment Analysis »

[25 Jan 2016 | 2 Comments]

This article deals with using different feature sets to train three different classifiers [Naive Bayes Classifier, Maximum Entropy (MaxEnt) Classifier, and Support Vector Machine (SVM) Classifier].
Bag of Words, Stopword Filtering and Bigram Collocations methods are used for feature set generation.

Python »

[18 Dec 2014 | No Comment]

print_r prints a PHP variable into human readable form.
The same can be achieved in Python using pprint module.