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

My Top 10 Strategies on Social Networking
Beyond Predictive BI
Semantic Analytics – Detecting Context within Social Media Conversations
Local Vodka in Newburyport: Why Not?
Early Indications April 2010 The Web of Opinion: Metadata as conversation
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 for smart cities
Machine Learning

8 Ways Machine Learning Can be Used to Make Cities Smarter

11 Min Read
machine learning importance in businesses
Machine Learning

Machine Learning Is Crucial For Expanding Online Customer Bases

7 Min Read
AI machine learning for payroll services
Machine Learning

How Payroll AI and Machine Learning Are Transforming Businesses

5 Min Read
machine data analytics
AnalyticsBig Data

Report: New Logistics Pave Road for Machine Data Analytics

5 Min Read

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

AI chatbots
AI Chatbots Can Help Retailers Convert Live Broadcast Viewers into Sales!
Chatbots
giveaway chatbots
How To Get An Award Winning Giveaway Bot
Big Data 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?