Feature Hashing (a.k.a. The Hashing Trick) With R [PDF]

"Feature hashing, also called the hashing trick, is a method to transform features to vector. Without looking up the ind

15 downloads 15 Views 80KB Size

Recommend Stories


hashing i
Never let your sense of morals prevent you from doing what is right. Isaac Asimov

Bayesian Supervised Hashing
If you are irritated by every rub, how will your mirror be polished? Rumi

Deep Multimodal Hashing with Orthogonal Units
No amount of guilt can solve the past, and no amount of anxiety can change the future. Anonymous

Multilinear Hyperplane Hashing
The only limits you see are the ones you impose on yourself. Dr. Wayne Dyer

Discrete Graph Hashing
Life isn't about getting and having, it's about giving and being. Kevin Kruse

Locality sensitive hashing
Sorrow prepares you for joy. It violently sweeps everything out of your house, so that new joy can find

Adaptive Quantization for Hashing
You often feel tired, not because you've done too much, but because you've done too little of what sparks

Stochastic Generative Hashing
You miss 100% of the shots you don’t take. Wayne Gretzky

Inductive Hashing on Manifolds
Goodbyes are only for those who love with their eyes. Because for those who love with heart and soul

Supervised Hashing with Latent Factor Models
At the end of your life, you will never regret not having passed one more test, not winning one more

Idea Transcript


Home Linkedin (https://www.linkedin.com/in/manuel-amunategui-20748923) Videos (https://www.youtube.com/user/mamunate/videos) Feedback (https://github.com/amunategui/Feedback/issues/new)

Feature Hashing (a.k.a. The Hashing Trick) With R Practical walkthroughs on machine learning, )

Let’s look at the AUC (Area under the curve) so we can compare this approach with the feature-hashed one: auc(objTest[,outcomeName], glmnetPredict)

## [1] 0.6480986

Using Feature Hashing Now for the fun part, remember that wide ) auc(objTest[,outcomeName], glmnetPredict)

## [1] 0.6475847

Practically the same score as prepping the ) # dummy version score: auc(objTest[,outcomeName], glmnetPredict) # feature hashed version ------------------------------------------------diabetes_hash

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.