Ruby and R

17,850 views
17,591 views

Published on

Ruby and R integration with text classification example

Published in: Technology

Ruby and R

  1. 1. RUBY AND RChang Sau SheongDirector, Applied Research, HP Labs Singapore1 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  2. 2. About HP Labs2 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  3. 3. HP LABS– Exploratory and advanced research group for Hewlett-Packard– Global organization that tackles complex challenges facing our customers and society over the next decade– Pushes the frontiers of fundamental science– HQ Palo Alto3 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  4. 4. HP LABS AROUND THE WORLD Bristol St. Petersburg Beijing Palo Alto Bangalore Haifa Singapore4 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  5. 5. HP LABS SINGAPORE– Set up in February 2010– Focus on Cloud Computing Research Applied Research • Exploratory research • Applied Research • Researchers • Innovators • Change the state of the art • Take the research to the next stage • Working closely with the academic community • Work closely with customers and business units5 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  6. 6. Ruby and R6 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  7. 7. Programming language and platform for statistical computing, licensed under GPL7 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  8. 8. Strengths in statistical processing and data visualization8 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  9. 9. Extensive library of statistical computing packages (CRAN) written by statisticians9 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  10. 10. Statistics is not just for statisticians10 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  11. 11. Recommendation Speech engine recognition Fingerprint Spam detection identification Card fraud Financial Face detection forecasting recognition Data OCR Credit scoring mining11 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  12. 12. CRAN– Almost 2000 packages, mostly created by statisticians • BiodiversityR – GUI for biodiversity and community ecology analysis • Emu – analyze speech patterns • GenABEL – study human genome • Quantmod– quantitative financial modeling framework • Ftrading – technical trading analysis • Cyclones – cyclone identification • DOSim – disease analysis toolkit for gene set • Agricolae – statistical procedures for agricultural research12 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  13. 13. EXAMPLE R CODE– EPL data from football-data.co.uk– Show home/away goals distribution for 201 season 113 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  14. 14. Why Ruby and R?14 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  15. 15. Stand on shoulders of giants15 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  16. 16. –Ruby • Human focused programming! • Better general purpose programming capabilities • Great frameworks! • Great libraries (20,000+ gems in RubyGems)–R • Focus on statistical computing/crunching • Lots of packages written by domain experts/ statisticians • Great graphing libraries16 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  17. 17. Ruby and R integration17 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  18. 18. RINRUBY– 100% Ruby– Uses pipes to send commands and evals– Uses TCP/IP Sockets to send and retrieve data– Pros: • Doesnt requires anything but R • Works flawlessly on Windows • Work with Ruby 1.8, 1.9 and JRuby 1.5 • All API tested– Cons: • VERY SLOW in assigning • Very limited datatypes: only Vector and Matrix • Not released since 2009 • Poor documentation18 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  19. 19. RSRUBY– C Extension for Ruby, linked to Rs shared library– Pros: • Blazing speed! 5-10 times faster than Rserve and 100-1000 than RinRuby. • Seamless integration with Ruby. Every method and object is treated like a Ruby object– Cons: • Transformation between R and Ruby types arent trivial • Dependent on operating system, Ruby implementation and R version • Not available for alternative implementations of Ruby (eg JRuby) • Not released since 2009 • Poor documentation19 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  20. 20. RSERVE– 100% Ruby– Uses TCP/IP sockets to interchange data and commands– Requires Rserve installed on the server machine– Access with Ruby uses Ruby-Rserve-Client library– Pros: • Work with Ruby 1.8, 1.9 and JRuby 1.5. • Session allows to process data asynchronously • Fast: 5-10 times faster than RinRuby • Most recently updated (Jan 2011)– Cons: • Requires Rserve • Limited features on Windows • Poor documentation20 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  21. 21. RAPACHE/RRACK– Web service based– Run R scripts as web services, consumed by Ruby front-end apps– Pros: • Modular and separate (no direct integration) • Can be scalable, ‘cloud’-ready– Cons: • Requires Rapache/rRack • rRack is very new (not accepted by CRAN yet, as of today!), requires R 2.13 (just released a few weeks ago) • Rapache specific to Apache web server only • Communications overhead for smaller integrations21 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  22. 22. Let’s look at some code! (I’m going to use Rserve)22 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  23. 23. Text classification23 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  24. 24. TEXT CLASSIFICATION–Automatically sorting a set of documents into different categories from a predefined set–Classic uses: Training Test data • Spam filtering data • Email prioritization Classifier category24 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  25. 25. 25 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  26. 26. TEXT CLASSIFIER CODE Prepare26 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  27. 27. Train classifier by counting frequency ofeach word in the document27 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  28. 28. Get word count28 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  29. 29. What you get {"check"=>1, "result"=>3, "marissa"=>1, "experi"=>1, "click"=>1, "engin"=>1, "simpli"=>1, "mistakenli"=>1, "pick"=>1, "prevent"=>1, "40"=>1, "regularli"=>1, "place"=>1, "user"=>5, "prefer"=>1, "malevol"=>1, "access"=>1, "robust"=>1, "servic"=>1, "fault"=>1, "malici"=>1, "list"=>2, "hand"=>1, "internet"=>1, "attribut"=>1, "instal"=>1, "file"=>1, "unabl"=>1, "vice"=>1, "stopbadwareorg"=>2, "merit"=>1, "decid"=>1, "flag"=>2, "saturdai"=>2, "hit"=>2, "offici"=>1, "error"=>3, "work"=>1, "site"=>5, "happen"=>2, "incid"=>1, "technic"=>1, "advis"=>1, "put"=>1, "human"=>3, "harm"=>2, "softwar"=>1, "ms"=>1, "affect"=>1, "carefulli"=>1, "product"=>1, "presid"=>1, "complaint"=>1, "potenti"=>2, "googl"=>6, "comput"=>2, "peopl"=>1, "investig"=>2, "consum"=>1, "danger"=>2, "period"=>1, "wrote"=>2, "search"=>7, "ascertain"=>1, "blog"=>1, "warn"=>2, "problem"=>1, "updat"=>2, "minut"=>1, "mayer"=>2}29 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  30. 30. Generate training data for prediction30 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  31. 31. Training data31 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  32. 32. category,googl,report,search,user,review,court,mckinnon,year,internet,microsoft,site,softwar,warn,browser,oper,expert,rise,lawyer,digit,extradit,sharpli,error,group,result,system,rebel,econom,presid,crisi,find,year,accus,global,obama,china,civilian,shrink,hous,wall,street,quarter,white,heavi,lehman,economi,session,ey,time,davo,humannot_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0not_interesting,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,5,0,2,0,0,0,3,0,0,0,3,1,0,0,0,0,0,3,0,0,0,0,0,0,2not_interesting,0,1,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,3,0,3,1,2,0,2,0,0,0,0,0,0,0,0,0,0,3,1,3,1,0,2,0not_interesting,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0, The top 25 most0,0,0,0,0,0,0,0,0,0,0,0,0,1not_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,0,0,1,2,1,4,0,0,2,0,0,0,2,0,0,0,0,2,0,1,0 frequent words innot_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,3,3,0,0,0,0,0,0,0,2,0,0 the training datasetnot_interesting,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,2,0,0,2,0,0,2,1,0,0,2,1,0,0,2,0,0,1,0,0interesting,6,0,7,5,0,0,0,0,1,0,5,1,2,0,0,0,0,0,0,0,0,3,0,3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3interesting,0,7,0,0,2,0,0,0,0,0,0,0,1,0,0,1,0,0,3,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,0,1,0,0,0,0,0,3,3,1,0,1,1,1,0,3,3,0,1,0,3,0,1,0,2,0,1,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,3,0interesting,0,0,0,0,3,5,5,0,0,0,0,0,0,0,0,0,1,4,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,6,0,1,1,0,0,0,0,0,0,0,1,0,0,4,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,0,0,0,2,0,0,0,2,1,4,0,2,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0 32 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  33. 33. category,googl,report,search,user,review,court,mckinnon,year,internet,microsoft,site,softwar,warn,browser,oper,expert,rise,lawyer,digit,extradit,sharpli,error,group,result,system,rebel,econom,presid,crisi,find,year,accus,global,obama,china,civilian,shrink,hous,wall,street,quarter,white,heavi,lehman,economi,session,ey,time,davo,humannot_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0not_interesting,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,5,0,2,0,0,0,3,0,0,0,3,1,0,0,0,0,0,3,0,0,0,0,0,0,2not_interesting,0,1,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,3,0,3,1,2,0,2,0,0,0,0,0,0,0,0,0,0,3,1,3,1,0,2,0not_interesting,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0, Each line0,0,0,0,0,0,0,0,0,0,0,0,0,1not_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,0,0,1,2,1,4,0,0,2,0,0,0,2,0,0,0,0,2,0,1,0 represents 1not_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,3,3,0,0,0,0,0,0,0,2,0,0 document trainednot_interesting,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,2,0,0,2,0,0,2,1,0,0,2,1,0,0,2,0,0,1,0,0interesting,6,0,7,5,0,0,0,0,1,0,5,1,2,0,0,0,0,0,0,0,0,3,0,3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3interesting,0,7,0,0,2,0,0,0,0,0,0,0,1,0,0,1,0,0,3,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,0,1,0,0,0,0,0,3,3,1,0,1,1,1,0,3,3,0,1,0,3,0,1,0,2,0,1,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,3,0interesting,0,0,0,0,3,5,5,0,0,0,0,0,0,0,0,0,1,4,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,6,0,1,1,0,0,0,0,0,0,0,1,0,0,4,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,0,0,0,2,0,0,0,2,1,4,0,2,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0 33 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  34. 34. category,googl,report,search,user,review,court,mckinnon,year,internet,microsoft,site,softwar,warn,browser,oper,expert,rise,lawyer,digit,extradit,sharpli,error,group,result,system,rebel,econom,presid,crisi,find,year,accus,global,obama,china,civilian,shrink,hous,wall,street,quarter,white,heavi,lehman,economi,session,ey,time,davo,humannot_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0not_interesting,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,5,0,2,0,0,0,3,0,0,0,3,1,0,0,0,0,0,3,0,0,0,0,0,0,2not_interesting,0,1,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,3,0,3,1,2,0,2,0,0,0,0,0,0,0,0,0,0,3,1,3,1,0,2,0 Categories setnot_interesting,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1not_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,0,0,1,2,1,4,0,0,2,0,0,0,2,0,0,0,0,2,0,1,0 when the classifiernot_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0, is created0,0,3,3,0,0,0,0,0,0,0,2,0,0not_interesting,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,2,0,0,2,0,0,2,1,0,0,2,1,0,0,2,0,0,1,0,0interesting,6,0,7,5,0,0,0,0,1,0,5,1,2,0,0,0,0,0,0,0,0,3,0,3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3interesting,0,7,0,0,2,0,0,0,0,0,0,0,1,0,0,1,0,0,3,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,0,1,0,0,0,0,0,3,3,1,0,1,1,1,0,3,3,0,1,0,3,0,1,0,2,0,1,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,3,0interesting,0,0,0,0,3,5,5,0,0,0,0,0,0,0,0,0,1,4,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,6,0,1,1,0,0,0,0,0,0,0,1,0,0,4,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,0,0,0,2,0,0,0,2,1,4,0,2,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0 34 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  35. 35. category,googl,report,search,user,review,court,mckinnon,year,internet,microsoft,site,softwar,warn,browser,oper,expert,rise,lawyer,digit,extradit,sharpli,error,group,result,system,rebel,econom,presid,crisi,find,year,accus,global,obama,china,civilian,shrink,hous,wall,street,quarter,white,heavi,lehman,economi,session,ey,time,davo,humannot_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0not_interesting,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,5,0,2,0,0,0,3,0,0,0,3,1,0,0,0,0,0,3,0,0,0,0,0,0,2not_interesting,0,1,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,3,0,3,1,2,0,2,0,0,0, Number indicates the0,0,0,0,0,0,0,3,1,3,1,0,2,0not_interesting,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 number of times thenot_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,0,0,1,2,1,4,0,0,2,0,0,0,2,0,0,0,0,2,0,1,0 word appears in thatnot_interesting,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,3,3,0,0,0,0,0,0,0,2,0,0not_interesting,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,2,0,0,2,0,0, document2,1,0,0,2,1,0,0,2,0,0,1,0,0interesting,6,0,7,5,0,0,0,0,1,0,5,1,2,0,0,0,0,0,0,0,0,3,0,3,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3interesting,0,7,0,0,2,0,0,0,0,0,0,0,1,0,0,1,0,0,3,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,0,1,0,0,0,0,0,3,3,1,0,1,1,1,0,3,3,0,1,0,3,0,1,0,2,0,1,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,3,0interesting,0,0,0,0,3,5,5,0,0,0,0,0,0,0,0,0,1,4,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,6,0,1,1,0,0,0,0,0,0,0,1,0,0,4,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0interesting,0,0,0,2,0,0,0,2,1,4,0,2,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0 35 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  36. 36. Test data36 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  37. 37. category,googl,report,search,user,review,court,mckinnon,year,internet,micr osoft,site,softwar,warn,browser,oper,expert,rise,lawyer,digit,extradit,sha rpli,error,group,result,system,rebel,econom,presid,crisi,find,year,accus,g lobal,obama,china,civilian,shrink,hous,wall,street,quarter,white,heavi,leh man,economi,session,ey,time,davo,human category,0,0,0,2,0,0,0,2,1,4,0,2,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,037 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  38. 38. Using different classification models38 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  39. 39. NAÏVE BAYES39 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  40. 40. SVM40 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  41. 41. RANDOM FOREST41 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  42. 42. NEURAL NETWORKS42 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  43. 43. Using the classifier43 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  44. 44. 44 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  45. 45. 45 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  46. 46. RESOURCES– HP Labs Worldwide – Rserve-Ruby-Clienthttp://www.hpl.hp.com/ https://github.com/clbustos/Rserve-– R Project Ruby-clienthttp://www.r-project.org/ – rApache– RsRuby http://rapache.net/index.htmlhttps://github.com/alexgutteridge/rsrub – rRacky https://github.com/jeffreyhorner/rRack/– RinRubyhttp://rinruby.ddahl.org/– Rservehttp://www.rforge.net/Rserve/46 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  47. 47. Thank you sausheong@hp.com http://twitter.com/sausheong http://blog.saush.com47 © Copyright 2010 Hewlett-Packard Development Company, L.P.

×