Cookies help us display personalized product recommendations and ensure you have great shopping experience.

By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    image fx (67)
    Improving LinkedIn Ad Strategies with Data Analytics
    9 Min Read
    big data and remote work
    Data Helps Speech-Language Pathologists Deliver Better Results
    6 Min Read
    data driven insights
    How Data-Driven Insights Are Addressing Gaps in Patient Communication and Equity
    8 Min Read
    pexels pavel danilyuk 8112119
    Data Analytics Is Revolutionizing Medical Credentialing
    8 Min Read
    data and seo
    Maximize SEO Success with Powerful Data Analytics Insights
    8 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-25 SmartData Collective. All Rights Reserved.
Reading: Machine Learning in R, in a nutshell
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Big Data > Data Mining > Machine Learning in R, in a nutshell
Data Mining

Machine Learning in R, in a nutshell

DavidMSmith
DavidMSmith
2 Min Read
SHARE

Josh Reich has created a concise R script demonstrating various machine-learning techniques in R with simple, self-contained examples. For example, here’s the code for K-means clustering:

k <- kmeans(train[,1:2],="">
plot(train[,1:2], type='n')
text(train[,1:2], as.character(k$cluster))
cm (train$class, k$cluster)

The techniques illustrated include:
  • K-means clustering
  • K nearest neighbours clustering 
  • Kernel clustering (via hand-rolled code) 
  • Recursive partitioning (regression trees) 
  • Principal Components Analysis (PCA) 
  • Linear Discriminant Analysis (LDA)
  • Support Vector Machines (SVM)
While the code is concise, Josh also provides extensive comments explaining how the techniques work and are implemented in R. He’s also provided some slides to go with the script which go over the fundamentals of machine learning techniques. This is a great place to start if you’re thinking about doing some predictive analytics in R. (And don’t forget to check out the Machine Learning Task View on CRAN, too.)

i2pi: Machine Learning demo script and slides

Link to original post

Josh Reich has created a concise R script demonstrating various machine-learning techniques in R with simple, self-contained examples. For example, here’s the code for K-means clustering:

More Read

Using Big Data to Track and Measure Emotion
Market Research in 3-D! – For Market Research, Social Networks Is to 2009 as what the Online Survey was in 1998
Riches for SaaS providers
HCIR: Better Than Magic!
Search map: interactive visualization of query clusters
k <- kmeans(train[,1:2], 3)
plot(train[,1:2], type='n')
text(train[,1:2], as.character(k$cluster))
cm (train$class, k$cluster)

The techniques illustrated include:
  • K-means clustering
  • K nearest neighbours clustering 
  • Kernel clustering (via hand-rolled code) 
  • Recursive partitioning (regression trees) 
  • Principal Components Analysis (PCA) 
  • Linear Discriminant Analysis (LDA)
  • Support Vector Machines (SVM)
While the code is concise, Josh also provides extensive comments explaining how the techniques work and are implemented in R. He’s also provided some slides to go with the script which go over the fundamentals of machine learning techniques. This is a great place to start if you’re thinking about doing some predictive analytics in R. (And don’t forget to check out the Machine Learning Task View on CRAN, too.)

i2pi: Machine Learning demo script and slides

Link to original post

TAGGED:machine learning
Share This Article
Facebook Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

image fx (2)
Monitoring Data Without Turning into Big Brother
Big Data Exclusive
image fx (71)
The Power of AI for Personalization in Email
Artificial Intelligence Exclusive Marketing
image fx (67)
Improving LinkedIn Ad Strategies with Data Analytics
Analytics Big Data Exclusive Software
big data and remote work
Data Helps Speech-Language Pathologists Deliver Better Results
Analytics Big Data Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

machine learning in translation
ExclusiveMachine Learning

Deciphering The Limitations Of Machine Learning Translations

8 Min Read
robotics and machine learning
ExclusiveMachine LearningSoftware

Why College Robotics Clubs Need To Start Embracing Machine Learning

6 Min Read
selenium for web testing
Development

Selenium is a Great Machine Learning Testing Tool for Web Developers

7 Min Read
machine learning and fintech
Machine Learning

Will COVID-19 Show the Adaptability of Machine Learning in Loan Underwriting?

7 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

giveaway chatbots
How To Get An Award Winning Giveaway Bot
Big Data Chatbots Exclusive
AI and chatbots
Chatbots and SEO: How Can Chatbots Improve Your SEO Ranking?
Artificial Intelligence Chatbots Exclusive

Quick Link

  • About
  • Contact
  • Privacy
Follow US
© 2008-25 SmartData Collective. All Rights Reserved.
Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?