SlideShare a Scribd company logo
Kick-R: Get your own R instance with
36 cores on AWS
Kick-R: Get your own R instance with
36 cores on AWS
Kick-R: Get your own R instance with
36 cores on AWS
Kick-R: Get your own R instance with
36 cores on AWS
Kick-R: Get your own R instance with
36 cores on AWS
Kiwamu Okabe @ Centillion Japan
Co.,Ltd.
Kiwamu Okabe @ Centillion Japan
Co.,Ltd.
Kiwamu Okabe @ Centillion Japan
Co.,Ltd.
Kiwamu Okabe @ Centillion Japan
Co.,Ltd.
Kiwamu Okabe @ Centillion Japan
Co.,Ltd.
One day, my boss said...One day, my boss said...One day, my boss said...One day, my boss said...One day, my boss said...
☆ Boss: "Hey, my R script needs much time
to run..."
☆ Boss: "Hey, my R script needs much time
to run..."
☆ Boss: "Hey, my R script needs much time
to run..."
☆ Boss: "Hey, my R script needs much time
to run..."
☆ Boss: "Hey, my R script needs much time
to run..."
☆ Me: "O.K. I'll try to fix it using AWS!"☆ Me: "O.K. I'll try to fix it using AWS!"☆ Me: "O.K. I'll try to fix it using AWS!"☆ Me: "O.K. I'll try to fix it using AWS!"☆ Me: "O.K. I'll try to fix it using AWS!"
My solution named "Kick-R"My solution named "Kick-R"My solution named "Kick-R"My solution named "Kick-R"My solution named "Kick-R"
DemonstrationDemonstrationDemonstrationDemonstrationDemonstration
data(spam)
cores�<-�detectCores()
cl�<-�makeCluster(cores)
registerDoParallel(cl)
system.time(fit.rf�<-�foreach(ntree�=�rep(40,�36),�.combine�=�combine,
������������������.export�=�"spam",�.packages�=�"randomForest")�%dopar%�{
��randomForest(type�~�.,�data�=�spam,�ntree�=�ntree)
})
stopCluster(cl)
data(spam)
cores�<-�detectCores()
cl�<-�makeCluster(cores)
registerDoParallel(cl)
system.time(fit.rf�<-�foreach(ntree�=�rep(40,�36),�.combine�=�combine,
������������������.export�=�"spam",�.packages�=�"randomForest")�%dopar%�{
��randomForest(type�~�.,�data�=�spam,�ntree�=�ntree)
})
stopCluster(cl)
data(spam)
cores�<-�detectCores()
cl�<-�makeCluster(cores)
registerDoParallel(cl)
system.time(fit.rf�<-�foreach(ntree�=�rep(40,�36),�.combine�=�combine,
������������������.export�=�"spam",�.packages�=�"randomForest")�%dopar%�{
��randomForest(type�~�.,�data�=�spam,�ntree�=�ntree)
})
stopCluster(cl)
data(spam)
cores�<-�detectCores()
cl�<-�makeCluster(cores)
registerDoParallel(cl)
system.time(fit.rf�<-�foreach(ntree�=�rep(40,�36),�.combine�=�combine,
������������������.export�=�"spam",�.packages�=�"randomForest")�%dopar%�{
��randomForest(type�~�.,�data�=�spam,�ntree�=�ntree)
})
stopCluster(cl)
data(spam)
cores�<- detectCores()
cl�<- makeCluster(cores)
registerDoParallel(cl)
system.time(fit.rf�<- foreach(ntree�= rep(40,�36),�.combine�=�combine,
.export�= "spam",�.packages�= "randomForest")�%dopar% {
randomForest(type�~ .,�data�=�spam,�ntree�=�ntree)
})
stopCluster(cl)
☆ 25.0 sec on ThinkPad X220☆ 25.0 sec on ThinkPad X220☆ 25.0 sec on ThinkPad X220☆ 25.0 sec on ThinkPad X220☆ 25.0 sec on ThinkPad X220
☆ 10.5 sec on AWS☆ 10.5 sec on AWS☆ 10.5 sec on AWS☆ 10.5 sec on AWS☆ 10.5 sec on AWS
How to build?How to build?How to build?How to build?How to build?
$�sudo�apt-get�install�git�make�bundler�unzip
$�cd�/usr/local/bin
$�wget�https://releases.hashicorp.com/packer/0.8.6/
packer_0.8.6_linux_amd64.zip
$�wget�https://releases.hashicorp.com/terraform/0.6.7/
terraform_0.6.7_linux_amd64.zip
$�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip
$�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip
$�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
$�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
$�cd�~/src
$�git�clone�https://github.com/centillion-tech/kick-r.git
$�cd�kick-r
$�make�setup
$�sudo�apt-get�install�git�make�bundler�unzip
$�cd�/usr/local/bin
$�wget�https://releases.hashicorp.com/packer/0.8.6/
packer_0.8.6_linux_amd64.zip
$�wget�https://releases.hashicorp.com/terraform/0.6.7/
terraform_0.6.7_linux_amd64.zip
$�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip
$�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip
$�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
$�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
$�cd�~/src
$�git�clone�https://github.com/centillion-tech/kick-r.git
$�cd�kick-r
$�make�setup
$�sudo�apt-get�install�git�make�bundler�unzip
$�cd�/usr/local/bin
$�wget�https://releases.hashicorp.com/packer/0.8.6/
packer_0.8.6_linux_amd64.zip
$�wget�https://releases.hashicorp.com/terraform/0.6.7/
terraform_0.6.7_linux_amd64.zip
$�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip
$�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip
$�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
$�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
$�cd�~/src
$�git�clone�https://github.com/centillion-tech/kick-r.git
$�cd�kick-r
$�make�setup
$�sudo�apt-get�install�git�make�bundler�unzip
$�cd�/usr/local/bin
$�wget�https://releases.hashicorp.com/packer/0.8.6/
packer_0.8.6_linux_amd64.zip
$�wget�https://releases.hashicorp.com/terraform/0.6.7/
terraform_0.6.7_linux_amd64.zip
$�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip
$�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip
$�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
$�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
$�cd�~/src
$�git�clone�https://github.com/centillion-tech/kick-r.git
$�cd�kick-r
$�make�setup
$�sudo�apt-get�install�git�make�bundler�unzip
$�cd�/usr/local/bin
$�wget�https://releases.hashicorp.com/packer/0.8.6/
packer_0.8.6_linux_amd64.zip
$�wget�https://releases.hashicorp.com/terraform/0.6.7/
terraform_0.6.7_linux_amd64.zip
$�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip
$�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip
$�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX
$�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
$�cd�~/src
$�git�clone�https://github.com/centillion-tech/kick-r.git
$�cd�kick-r
$�make�setup
How to run?How to run?How to run?How to run?How to run?
$�make
$�make�ssh-config�>�~/.ssh/config
$�ssh�kick-r
ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1
R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing"
$�make
$�make�ssh-config�>�~/.ssh/config
$�ssh�kick-r
ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1
R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing"
$�make
$�make�ssh-config�>�~/.ssh/config
$�ssh�kick-r
ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1
R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing"
$�make
$�make�ssh-config�>�~/.ssh/config
$�ssh�kick-r
ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1
R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing"
$�make
$�make�ssh-config�>�~/.ssh/config
$�ssh�kick-r
ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1
R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing"
How to use on Emacs?How to use on Emacs?How to use on Emacs?How to use on Emacs?How to use on Emacs?
M-x�R
/ssh:kick-r:
M-x�R
/ssh:kick-r:
M-x�R
/ssh:kick-r:
M-x�R
/ssh:kick-r:
M-x�R
/ssh:kick-r:
X forwarding is available.X forwarding is available.X forwarding is available.X forwarding is available.X forwarding is available.
How to cleanup all of environment?How to cleanup all of environment?How to cleanup all of environment?How to cleanup all of environment?How to cleanup all of environment?
make�distcleanmake�distcleanmake�distcleanmake�distcleanmake�distclean
Try it!Try it!Try it!Try it!Try it!
https://github.com/centillion-tech/kick-rhttps://github.com/centillion-tech/kick-rhttps://github.com/centillion-tech/kick-rhttps://github.com/centillion-tech/kick-rhttps://github.com/centillion-tech/kick-r
License of photos #1License of photos #1License of photos #1License of photos #1License of photos #1
*�Side�Kick�Cara�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/davishaw/442139414/
��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0
*�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/chrishimself/3490002460/
��Copyright:�Christian�H.�/�License:�CC�BY�2.0
*�Kicking�scooters�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/amira_a/10597007134/
��Copyright:�amira_a�/�License:�CC�BY�2.0
*�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/mujitra/2527994700/
��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0
*�Dive�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/joeshlabotnik/516341295/
��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0
*�Side�Kick�Cara�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/davishaw/442139414/
��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0
*�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/chrishimself/3490002460/
��Copyright:�Christian�H.�/�License:�CC�BY�2.0
*�Kicking�scooters�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/amira_a/10597007134/
��Copyright:�amira_a�/�License:�CC�BY�2.0
*�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/mujitra/2527994700/
��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0
*�Dive�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/joeshlabotnik/516341295/
��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0
*�Side�Kick�Cara�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/davishaw/442139414/
��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0
*�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/chrishimself/3490002460/
��Copyright:�Christian�H.�/�License:�CC�BY�2.0
*�Kicking�scooters�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/amira_a/10597007134/
��Copyright:�amira_a�/�License:�CC�BY�2.0
*�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/mujitra/2527994700/
��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0
*�Dive�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/joeshlabotnik/516341295/
��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0
*�Side�Kick�Cara�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/davishaw/442139414/
��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0
*�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/chrishimself/3490002460/
��Copyright:�Christian�H.�/�License:�CC�BY�2.0
*�Kicking�scooters�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/amira_a/10597007134/
��Copyright:�amira_a�/�License:�CC�BY�2.0
*�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/mujitra/2527994700/
��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0
*�Dive�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/joeshlabotnik/516341295/
��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0
*�Side�Kick�Cara�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/davishaw/442139414/
��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0
*�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/chrishimself/3490002460/
��Copyright:�Christian�H.�/�License:�CC�BY�2.0
*�Kicking�scooters�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/amira_a/10597007134/
��Copyright:�amira_a�/�License:�CC�BY�2.0
*�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/mujitra/2527994700/
��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0
*�Dive�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/joeshlabotnik/516341295/
��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0
License of photos #2License of photos #2License of photos #2License of photos #2License of photos #2
*�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/steren/2732488224/
��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0
*�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/steren/2732488224/
��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0
*�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/steren/2732488224/
��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0
*�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/steren/2732488224/
��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0
*�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing!
��https://www.flickr.com/photos/steren/2732488224/
��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0

More Related Content

PPTX
Scala and Hadoop @ eBay
PDF
Regular expression that produce parse trees
PPTX
Dapper Tool - A Bundle to Make your ECL Neater
PDF
power-assert, mechanism and philosophy
PDF
Apache Arrowフォーマットはなぜ速いのか
PDF
Hive at Last.fm
PDF
OCF.tw's talk about "Introduction to spark"
PDF
Madrid Spark Big Data Bluemix Meetup - Spark Versus Hadoop @ 100 TB Daytona G...
Scala and Hadoop @ eBay
Regular expression that produce parse trees
Dapper Tool - A Bundle to Make your ECL Neater
power-assert, mechanism and philosophy
Apache Arrowフォーマットはなぜ速いのか
Hive at Last.fm
OCF.tw's talk about "Introduction to spark"
Madrid Spark Big Data Bluemix Meetup - Spark Versus Hadoop @ 100 TB Daytona G...

Similar to Kick-R: Get your own R instance with 36 cores on AWS (11)

PDF
Sentiment Analysis in R on AWS cloud
KEY
R Jobs on the Cloud
PPTX
Adv. R (AWS) EDITED.pptx
PDF
Extending lifespan with Hadoop and R
PPT
eHarmony in the Cloud
PDF
Big Data Step-by-Step: Infrastructure 2/3: Running R and RStudio on EC2
PDF
Revolutionize DevOps with ML capabilities. Introduction to Amazon CodeGuru an...
PPTX
Building a Scalable Data Science Platform with R
PDF
20211202 North America DevOps Group NADOG Adapting to Covid With Serverless C...
PDF
Performance architecture for cloud connect
PDF
Infrastructure for auto scaling distributed system
Sentiment Analysis in R on AWS cloud
R Jobs on the Cloud
Adv. R (AWS) EDITED.pptx
Extending lifespan with Hadoop and R
eHarmony in the Cloud
Big Data Step-by-Step: Infrastructure 2/3: Running R and RStudio on EC2
Revolutionize DevOps with ML capabilities. Introduction to Amazon CodeGuru an...
Building a Scalable Data Science Platform with R
20211202 North America DevOps Group NADOG Adapting to Covid With Serverless C...
Performance architecture for cloud connect
Infrastructure for auto scaling distributed system
Ad

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Approach and Philosophy of On baking technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
cuic standard and advanced reporting.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation theory and applications.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
A comparative analysis of optical character recognition models for extracting...
20250228 LYD VKU AI Blended-Learning.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Approach and Philosophy of On baking technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
NewMind AI Weekly Chronicles - August'25-Week II
cuic standard and advanced reporting.pdf
The AUB Centre for AI in Media Proposal.docx
Encapsulation theory and applications.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
Spectroscopy.pptx food analysis technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Per capita expenditure prediction using model stacking based on satellite ima...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
Machine Learning_overview_presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
A comparative analysis of optical character recognition models for extracting...
Ad

Kick-R: Get your own R instance with 36 cores on AWS

  • 1. Kick-R: Get your own R instance with 36 cores on AWS Kick-R: Get your own R instance with 36 cores on AWS Kick-R: Get your own R instance with 36 cores on AWS Kick-R: Get your own R instance with 36 cores on AWS Kick-R: Get your own R instance with 36 cores on AWS Kiwamu Okabe @ Centillion Japan Co.,Ltd. Kiwamu Okabe @ Centillion Japan Co.,Ltd. Kiwamu Okabe @ Centillion Japan Co.,Ltd. Kiwamu Okabe @ Centillion Japan Co.,Ltd. Kiwamu Okabe @ Centillion Japan Co.,Ltd.
  • 2. One day, my boss said...One day, my boss said...One day, my boss said...One day, my boss said...One day, my boss said... ☆ Boss: "Hey, my R script needs much time to run..." ☆ Boss: "Hey, my R script needs much time to run..." ☆ Boss: "Hey, my R script needs much time to run..." ☆ Boss: "Hey, my R script needs much time to run..." ☆ Boss: "Hey, my R script needs much time to run..." ☆ Me: "O.K. I'll try to fix it using AWS!"☆ Me: "O.K. I'll try to fix it using AWS!"☆ Me: "O.K. I'll try to fix it using AWS!"☆ Me: "O.K. I'll try to fix it using AWS!"☆ Me: "O.K. I'll try to fix it using AWS!"
  • 3. My solution named "Kick-R"My solution named "Kick-R"My solution named "Kick-R"My solution named "Kick-R"My solution named "Kick-R"
  • 4. DemonstrationDemonstrationDemonstrationDemonstrationDemonstration data(spam) cores�<-�detectCores() cl�<-�makeCluster(cores) registerDoParallel(cl) system.time(fit.rf�<-�foreach(ntree�=�rep(40,�36),�.combine�=�combine, ������������������.export�=�"spam",�.packages�=�"randomForest")�%dopar%�{ ��randomForest(type�~�.,�data�=�spam,�ntree�=�ntree) }) stopCluster(cl) data(spam) cores�<-�detectCores() cl�<-�makeCluster(cores) registerDoParallel(cl) system.time(fit.rf�<-�foreach(ntree�=�rep(40,�36),�.combine�=�combine, ������������������.export�=�"spam",�.packages�=�"randomForest")�%dopar%�{ ��randomForest(type�~�.,�data�=�spam,�ntree�=�ntree) }) stopCluster(cl) data(spam) cores�<-�detectCores() cl�<-�makeCluster(cores) registerDoParallel(cl) system.time(fit.rf�<-�foreach(ntree�=�rep(40,�36),�.combine�=�combine, ������������������.export�=�"spam",�.packages�=�"randomForest")�%dopar%�{ ��randomForest(type�~�.,�data�=�spam,�ntree�=�ntree) }) stopCluster(cl) data(spam) cores�<-�detectCores() cl�<-�makeCluster(cores) registerDoParallel(cl) system.time(fit.rf�<-�foreach(ntree�=�rep(40,�36),�.combine�=�combine, ������������������.export�=�"spam",�.packages�=�"randomForest")�%dopar%�{ ��randomForest(type�~�.,�data�=�spam,�ntree�=�ntree) }) stopCluster(cl) data(spam) cores�<- detectCores() cl�<- makeCluster(cores) registerDoParallel(cl) system.time(fit.rf�<- foreach(ntree�= rep(40,�36),�.combine�=�combine, .export�= "spam",�.packages�= "randomForest")�%dopar% { randomForest(type�~ .,�data�=�spam,�ntree�=�ntree) }) stopCluster(cl) ☆ 25.0 sec on ThinkPad X220☆ 25.0 sec on ThinkPad X220☆ 25.0 sec on ThinkPad X220☆ 25.0 sec on ThinkPad X220☆ 25.0 sec on ThinkPad X220 ☆ 10.5 sec on AWS☆ 10.5 sec on AWS☆ 10.5 sec on AWS☆ 10.5 sec on AWS☆ 10.5 sec on AWS
  • 5. How to build?How to build?How to build?How to build?How to build? $�sudo�apt-get�install�git�make�bundler�unzip $�cd�/usr/local/bin $�wget�https://releases.hashicorp.com/packer/0.8.6/ packer_0.8.6_linux_amd64.zip $�wget�https://releases.hashicorp.com/terraform/0.6.7/ terraform_0.6.7_linux_amd64.zip $�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip $�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip $�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX $�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY $�cd�~/src $�git�clone�https://github.com/centillion-tech/kick-r.git $�cd�kick-r $�make�setup $�sudo�apt-get�install�git�make�bundler�unzip $�cd�/usr/local/bin $�wget�https://releases.hashicorp.com/packer/0.8.6/ packer_0.8.6_linux_amd64.zip $�wget�https://releases.hashicorp.com/terraform/0.6.7/ terraform_0.6.7_linux_amd64.zip $�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip $�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip $�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX $�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY $�cd�~/src $�git�clone�https://github.com/centillion-tech/kick-r.git $�cd�kick-r $�make�setup $�sudo�apt-get�install�git�make�bundler�unzip $�cd�/usr/local/bin $�wget�https://releases.hashicorp.com/packer/0.8.6/ packer_0.8.6_linux_amd64.zip $�wget�https://releases.hashicorp.com/terraform/0.6.7/ terraform_0.6.7_linux_amd64.zip $�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip $�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip $�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX $�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY $�cd�~/src $�git�clone�https://github.com/centillion-tech/kick-r.git $�cd�kick-r $�make�setup $�sudo�apt-get�install�git�make�bundler�unzip $�cd�/usr/local/bin $�wget�https://releases.hashicorp.com/packer/0.8.6/ packer_0.8.6_linux_amd64.zip $�wget�https://releases.hashicorp.com/terraform/0.6.7/ terraform_0.6.7_linux_amd64.zip $�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip $�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip $�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX $�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY $�cd�~/src $�git�clone�https://github.com/centillion-tech/kick-r.git $�cd�kick-r $�make�setup $�sudo�apt-get�install�git�make�bundler�unzip $�cd�/usr/local/bin $�wget�https://releases.hashicorp.com/packer/0.8.6/ packer_0.8.6_linux_amd64.zip $�wget�https://releases.hashicorp.com/terraform/0.6.7/ terraform_0.6.7_linux_amd64.zip $�sudo�unzip�-x�packer_0.8.6_linux_amd64.zip $�sudo�unzip�-x�terraform_0.6.7_linux_amd64.zip $�export�AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXXXXX $�export�AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY $�cd�~/src $�git�clone�https://github.com/centillion-tech/kick-r.git $�cd�kick-r $�make�setup
  • 6. How to run?How to run?How to run?How to run?How to run? $�make $�make�ssh-config�>�~/.ssh/config $�ssh�kick-r ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1 R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing" $�make $�make�ssh-config�>�~/.ssh/config $�ssh�kick-r ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1 R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing" $�make $�make�ssh-config�>�~/.ssh/config $�ssh�kick-r ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1 R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing" $�make $�make�ssh-config�>�~/.ssh/config $�ssh�kick-r ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1 R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing" $�make $�make�ssh-config�>�~/.ssh/config $�ssh�kick-r ubuntu@ip-10-189-135-202:~$�R�--version�│�head�-1 R�version�3.0.2�(2013-09-25)�--�"Frisbee�Sailing"
  • 7. How to use on Emacs?How to use on Emacs?How to use on Emacs?How to use on Emacs?How to use on Emacs? M-x�R /ssh:kick-r: M-x�R /ssh:kick-r: M-x�R /ssh:kick-r: M-x�R /ssh:kick-r: M-x�R /ssh:kick-r: X forwarding is available.X forwarding is available.X forwarding is available.X forwarding is available.X forwarding is available.
  • 8. How to cleanup all of environment?How to cleanup all of environment?How to cleanup all of environment?How to cleanup all of environment?How to cleanup all of environment? make�distcleanmake�distcleanmake�distcleanmake�distcleanmake�distclean
  • 9. Try it!Try it!Try it!Try it!Try it! https://github.com/centillion-tech/kick-rhttps://github.com/centillion-tech/kick-rhttps://github.com/centillion-tech/kick-rhttps://github.com/centillion-tech/kick-rhttps://github.com/centillion-tech/kick-r
  • 10. License of photos #1License of photos #1License of photos #1License of photos #1License of photos #1 *�Side�Kick�Cara�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/davishaw/442139414/ ��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0 *�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/chrishimself/3490002460/ ��Copyright:�Christian�H.�/�License:�CC�BY�2.0 *�Kicking�scooters�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/amira_a/10597007134/ ��Copyright:�amira_a�/�License:�CC�BY�2.0 *�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/mujitra/2527994700/ ��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0 *�Dive�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/joeshlabotnik/516341295/ ��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0 *�Side�Kick�Cara�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/davishaw/442139414/ ��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0 *�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/chrishimself/3490002460/ ��Copyright:�Christian�H.�/�License:�CC�BY�2.0 *�Kicking�scooters�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/amira_a/10597007134/ ��Copyright:�amira_a�/�License:�CC�BY�2.0 *�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/mujitra/2527994700/ ��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0 *�Dive�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/joeshlabotnik/516341295/ ��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0 *�Side�Kick�Cara�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/davishaw/442139414/ ��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0 *�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/chrishimself/3490002460/ ��Copyright:�Christian�H.�/�License:�CC�BY�2.0 *�Kicking�scooters�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/amira_a/10597007134/ ��Copyright:�amira_a�/�License:�CC�BY�2.0 *�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/mujitra/2527994700/ ��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0 *�Dive�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/joeshlabotnik/516341295/ ��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0 *�Side�Kick�Cara�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/davishaw/442139414/ ��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0 *�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/chrishimself/3490002460/ ��Copyright:�Christian�H.�/�License:�CC�BY�2.0 *�Kicking�scooters�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/amira_a/10597007134/ ��Copyright:�amira_a�/�License:�CC�BY�2.0 *�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/mujitra/2527994700/ ��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0 *�Dive�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/joeshlabotnik/516341295/ ��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0 *�Side�Kick�Cara�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/davishaw/442139414/ ��Copyright:�David�Farrell-Shaw�/�License:�CC�BY�2.0 *�Boss�Coffee�Vending�Machine�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/chrishimself/3490002460/ ��Copyright:�Christian�H.�/�License:�CC�BY�2.0 *�Kicking�scooters�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/amira_a/10597007134/ ��Copyright:�amira_a�/�License:�CC�BY�2.0 *�amazon.co.jp�Credit�Card.�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/mujitra/2527994700/ ��Copyright:�MIKI�Yoshihito�/�License:�CC�BY�2.0 *�Dive�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/joeshlabotnik/516341295/ ��Copyright:�Peter�Dutton�/�License:�CC�BY�2.0
  • 11. License of photos #2License of photos #2License of photos #2License of photos #2License of photos #2 *�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/steren/2732488224/ ��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0 *�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/steren/2732488224/ ��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0 *�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/steren/2732488224/ ��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0 *�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/steren/2732488224/ ��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0 *�Creative�Commons�BBB�│�Flickr�-�Photo�Sharing! ��https://www.flickr.com/photos/steren/2732488224/ ��Copyright:�Steren�Giannini�/�License:�CC�BY�2.0