Diego Klabjan
  • Home
  • Vita
  • Publications
  • Contact

Information Gain based feature selection in Spark’s MLlib

2/16/2015

70 Comments

 
We recently worked on a project that included web data and other customer specific information. It was a propensity analysis type project where recommendations were required for each individual client based on his or her past actions on the web. Each item recommended has many features and clients belong to organizations, which creates interactions among them.

Recommendations should be personalized and take into account linkage through organizations. To handle the latter, we selected to use organization related features as features in the model (instead of a possible alternative approach of having organization-level and individual customer-level models which are then combined).

These characteristics led to a personalized model for each client with each model having more than 2,000 features. To avoid over-fitting, feature selection had to be performed at customer level and thus due to a large number of customers in an automated fashion.

A possible line of attack is to apply PCA to each model. The problem with this approach is that the resulting features are linear combinations of original features. The project managers were consistently asking which features are important and what is the importance of each feature (think weights in logistic regression). For this reason PCA was not a viable option.

Instead we opted to go with feature selection based on information gain. The concept is based on the information gain between a feature vector and the label vector. The goal is to select a subset of features that maximize the information gain between them and the label (reveal as much information about the labels as possible) and minimize the information gain among the features themselves (minimize the redundancy of the features among themselves). The goal is to find set S that , where ig is the information gain between two vectors. It is common to solve this problem, called maximum relevance minimum redundancy, greedily.

Due to a large amount of data across all customers, we implemented the entire system in Spark. Spark’s MLlib unfortunately offers only feature selection based on PCA but not based on information gain. For this reason we implemented our own package. The package is available at https://github.com/wxhC3SC6OPm8M1HXboMy/spark-ml.git for public peruse.

For our purpose we had to also customize MLlib with other extensions (that are rather short and thus not put in a public repository).

Our model was heavily unbalanced (one class represented less than 1% of the records). We undersampled the large class but we had also used different weights for different records in the model calibration phase. This also allowed us to put different weights for different events of customers (for example, a misclassification of a purchase event has more weight than a misclassification of an item that the user recommended to someone else in the same organization). We achieved this by subclassing LabelPoint with a weight of the record. We also had to customize the classes for gradient computation (in logistic and SVM since these were the most competitive models) in order to account for weights.

The second enhancement was the use of a quadratic kernel in SVM and logistic regression. We implemented the quadratic kernel since it yields a linear model in a finite higher dimensional space and thus can reuse a lot of the linear machinery in MLlib. To this end, we created a class that extends the input rdd with the kernel function and then exposes the standard API of linear models. We have also extended the model class to automatically take into account the same kernel function when a test vector is applied for predictions.

Overall, Spark definitely met the needs of this project. It is robust and definitely scalable. On the downside, our problem was not a textbook model and thus it needed several enhancements to MLlib.

70 Comments
Kalma quran link
3/1/2015 08:54:05 pm

You blog post is just completely quality and informative. Many new facts and information which I have not heard about before. Keep sharing more blog posts.

Reply
Love marriage specialist astrologer link
3/10/2015 08:47:06 pm

Very efficiently written information. It will be valuable to everyone who uses it, including myself. Thanks a lot

Reply
Love problem solution specialist link
3/13/2015 03:59:24 pm

It’s amazing how interesting it is for me to visit you very often.

Reply
Free astrology on phone link
3/13/2015 04:50:50 pm

Thank you very much for posting and sharing this great article. It is so interesting for me and beneficial to all people who read

Reply
Top astrologer in India link
3/13/2015 05:11:52 pm

Thank you! It was a wonderful chance to visit this kind of site. I hope you will publish more on this topic. Thanks a lot for sharing with us!
Reply

Reply
Kala jadu tona totka link
3/18/2015 08:03:42 pm

I read your blog and here i got more information thanks for share that awesome blogs.

Reply
Dua E Manzil | Due E Hazat link
3/20/2015 04:00:13 pm

Today i read your blog and here i got more information thanks for share that awesome blogs.

Reply
Love marriage specialist link
3/23/2015 10:55:10 pm

I always looks like these type of blog. this is much informative and useful for everyone.

Reply
belastingadviseurs utrecht link
4/1/2015 07:10:06 pm

Great and nice blog! thanks for sharing..

Reply
How to get return lost love back spells link
4/16/2015 09:44:25 pm

Thanks for making that a nice blog

Reply
Online relationship solutions link
4/20/2015 05:53:32 pm

For me it was very interesting to read this article! thanks for the update

Reply
Deal link
4/21/2015 09:54:17 pm

Online shopping across various categories products with Buying Regroupment . you get many offers on many products, and Deal of the day etc.

Reply
Beaverton dog trainers link
4/22/2015 05:31:00 pm

Wha! This is great full blog i like this type blog. Deferentially this blog have this quality big cost, special effects, thank for sharing this blog.

Reply
Suzuki fairing link
4/22/2015 08:19:09 pm

aftermarket fairings, race fairing, honda fairing, cbr fairing, gsxr fairing, suzuki fairing, yamaha fairing, kawasaki fairing, r6 fairing, r1 fairing, ducati fairing, ducati fairing kit, 1098 fairing, 848 fairing.

Reply
kala jadu ka tor link
4/22/2015 11:16:14 pm

Another great post, I appreciate all the work you put into this site, helping out others with your fun and creative works.

Reply
Bookkeeper for small business link
4/23/2015 02:23:24 pm

Wow! I am mainly surprised by the way you unique out almost every single little detail. It can be genuinely heading to aid me a great offer. Thanks for sharing your suggestions so certainly.

Reply
Powerful vashikaran mantras for love-spell by black magic link
4/23/2015 03:57:20 pm

Nice post !! Thanks for sharing that a wonderful post.

Reply
Ottawa Kitchen Renovation link
4/23/2015 08:47:52 pm

Very inspirational to hear about someone pursuing their dream and becoming successful instead of following the traditional path.

Reply
عروض المصارعة الحرة link
4/23/2015 10:21:08 pm

Wha! This is great full blog i like this type blog. Deferentially this blog have this quality big cost, special effects, thank for sharing this blog.

Reply
Kala jadu ka tor link
4/23/2015 11:07:38 pm

Quite interesting topic will save your web site to check.

Reply
Massive Savings For UK Buyers In Portugal link
4/28/2015 11:36:17 pm

Unless you have a degree in Economics, understanding what’s going on with the Eurozone economy and how it affects the UK can be terribly confusing!

Reply
Muslim astrology link
5/3/2015 05:57:17 pm

It’s amazing how interesting it is for me to visit you very often.

Reply
Buy VPS link
5/3/2015 10:24:32 pm

Powererful 1Gbps Linux VPS and Windows VPS plans in the netherlands like Linux VPS,Windows VPS,Seedbox VPS,Netherlands VPS.

Reply
windows vps India link
6/2/2015 01:46:56 pm

I’m very fired up to show it to anyone. It makes me so satisfied your vast understanding and wisdom have a new channel for trying into
the world.

Reply
best essay writers link
7/6/2015 09:03:38 pm

Everything is thought for the people who really need this syetem, I think everyone who use it is rather happy, as it gives more opportunities in a jib and in writing the dissertation papers for the students.

Reply
click original source link
8/3/2015 11:51:08 am

After reading this post from up to down, I must give you 2 thumbs up.

Reply
website link
8/3/2015 07:02:36 pm

Reading your post is just like reading an official journal. It's clearly structured and have covered all issues. Great job man, I am really enjoyed to be here.

Reply
termitecontrolfortlauderdale link
8/4/2015 01:07:50 pm

No matter how long I spent my tim to read your article, but it's already give me some new ideas on my life. Thanks.

Reply
Famous Hollywood Celebrities with Cellulite link
8/14/2015 02:53:11 am

Hello, Diego Klabjan
You are running amazing blog and you made me feel excellent by reading this informative post.
Thanks

Reply
La Quinta Real Estate link
8/18/2015 03:34:43 am

Never thought such issue before, yet now I knew it well. Thanks for the author.

Reply
Bhagyanidhi lottery result link
8/21/2015 07:57:06 pm

If you want to check results for Bhagyanidhi lottery you may like this

Reply
Live score of Rugby world cup 2015 link
8/21/2015 07:57:35 pm

Check for all live score updates for Rugby Worldcup 2015 matches

Reply
PRADA BAG link
8/22/2015 05:11:04 pm

This is a very nice blog. I hope I can make a blog like you. I amazed with the blog yours

Reply
Live ticker Bundesliga link
8/24/2015 06:02:47 pm

Vielen Dank für die Freigabe an den Pfosten.

Reply
PEST CONTROL link
8/27/2015 09:20:22 am

Wow, it's a very deep analysis. Thank you!

Reply
Rugby world cup 2015 live streaming link
8/30/2015 06:10:28 pm

Wow. Thanks for sharing. I like this. Now Check Rugby world cup 2015 online here.

Reply
Fat Diminisher Review link
9/5/2015 04:13:52 pm

Thanks !

Reply
Patricia Wron link
9/5/2015 04:14:43 pm

Thanks for the share lvoed reading thea rticle, please do sahre more like this with us !

Reply
ISL 2015 Schedule link
9/5/2015 04:17:31 pm

Thanks for the share loved it !

Reply
Rugby world cup 2015 live stream link
9/9/2015 05:44:59 pm

Thanks for sharing. I like this. Now Check Rugby world cup 2015 online here.

Reply
rugby world cup 2015 live streaming link
9/11/2015 06:09:59 am

This is a great post. I feel you covered all the necessary bases. This is very useful information for online review readers. Keep it up such a nice posting like this.Thanks for sharing..

Reply
Quickbooks Pro Advisor link
9/15/2015 09:49:22 pm

tihs

Reply
Intuit quickbook online link
9/15/2015 09:49:56 pm

this is all about the film.

Reply
Video Converter link
9/18/2015 07:06:37 pm

Total Video Converter, a very powerful Avi to Mp4 Video Converter, convert any video files to avi, 3gp, mp4, psp, iPod, iPhone, flv, DVD, VCD.

Reply
get love back by vashikaran link
9/22/2015 04:35:07 pm

Thanks for share.

Reply
yepme coupon code link
9/23/2015 10:20:11 pm

Thanks for sharing this post this is a good article I like this post

Reply
isl 2015 live streaming link
9/25/2015 09:54:00 pm

thanks for this article

Reply
Chef Coats link
10/1/2015 11:21:00 pm

Nice post share. I like your post

Reply
Small Business Web Design Company link
10/2/2015 04:47:58 pm

Super-Duper web site! I love it!! Will take place back again once again - having you feeds also, Many thanks.

Reply
avg tech support link
10/6/2015 11:00:07 pm

awesome article

Reply
router tech support usa link
10/6/2015 11:01:18 pm

thanks for this

Reply
Happy Diwali 2015 link
10/7/2015 05:31:59 am

best share ever!

Reply
Mafell borrmaskin link
10/8/2015 06:41:57 pm

Verktyg1.se erbjuder hantverkare, proffs och medvetna hemmafixare produkter av högsta kvalitet till bra priser. Beställ direkt eller per telefon 0737246089

Reply
[email protected] link
10/20/2015 09:49:09 pm

Helaas is deze domeinnaam reeds geregistreerd voor een van onze klanten.U kunt hierboven op de pagina controleren of een domeinnaam nog beschikbaar is voor registratie

Reply
Greengeeks Offers link
10/25/2015 10:35:25 pm

Very impressive blog thanks for share it

Reply
Jasa SEO link
10/26/2015 10:52:41 am

Well, thank you for making such useful article.

Reply
Woodinville Airport Transportation link
10/26/2015 07:35:40 pm

Seattle town car service and airport transportation call today for reservations great rates, experienced drivers and personalized service in the Greater Puget Sound area.

Reply
Homework Help Online link
10/28/2015 03:27:11 pm

Our website is No. 1 in Assignment and Homework help. This is preferred destination for various students to get their Homework & Assignment help.

Reply
HR Homework Help link
10/28/2015 04:10:06 pm

I hope everyone like this information they shared as I do. Really great information.

Reply
Content Writing Service link
10/28/2015 04:41:44 pm

It is really nice blog that become inspiration to everyone.

Reply
Online Case Study Help link
10/28/2015 05:34:36 pm

Eden Carter is an academic writer of the casestudy.help. Who writes quality academic papers for students to help them in accomplishing their goals.

Reply
Sociology Online Assignment Help link
10/28/2015 07:09:02 pm

That is fantastic blog, I will pas this to the other peoples.

Reply
Accounting Homework Help Online link
10/28/2015 07:48:06 pm

yeah it was such an awesome blog that i have updated.. :)

Reply
Privacy link
11/1/2015 08:50:14 pm

隐私卫士(LEO Privacy Guard)是一款免费的手机应用管理软件,提供应用加 锁、应用加速、应用备份、照片隐藏、流量监控等功能和服务,彻底解决 个人隐私、数据安全和手机卡慢问题,让你的手机安全无忧,轻松享受极 致移动互联网生活!

Reply
Husband Wife Relationship Problem Solution Baba link
11/5/2015 05:51:49 pm

Interesting work is done here . I like this type of posts. Thanks for share this post with us .

Reply
Vashikaran Mantra in Hindi link
11/5/2015 06:51:21 pm

Interesting Post it is . Thanks for share it with us .

Reply
Love marriage specialist link
11/5/2015 07:07:19 pm

Excellent post it is . I really like it . Thanks for share an informative post . Appreciate it and keep posting.

Reply
Lost Love Back Solution link
11/5/2015 07:29:01 pm

Great ! It very nice or informative post . I like it . Thanks to share this information.

Reply
Vashikaran Specialist in Kolkata link
11/5/2015 07:43:41 pm

Excellent work you done .Thanks for share this informative post.

Reply
Blackmagic Specialist in Kolkata link
11/5/2015 07:44:11 pm

It's very informative post . I like it . Thanks for share this post.

Reply

Your comment will be posted after it is approved.


Leave a Reply.

    Diego Klabjan

    Professor at Northwestern University, Department of Industrial Engineering and Management Sciences. Founding Director, Master of Science in Analytics.

    Archives

    July 2019
    June 2019
    March 2019
    February 2019
    January 2017
    August 2016
    March 2016
    November 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014

    Categories

    All
    Analytics

    RSS Feed