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

Data Mining Research Interview: Stuart Shulman
A paradigm shift is happening in business, industry, and…
How Data-Driven Decision Making Is Giving Companies Competitive Advantage
Ten ways to build a wrong scoring model
AOL Advertising on the Need for Speed in Yield Optimization
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

power supplies for ATX for data scientists
Why Data Scientists Should Care About SFX Power Supplies
Big Data Exclusive
AI for website optimization
Free Tools to Test Website Accessibility
Artificial Intelligence Exclusive
Generative AI models
Thinking Machines At Work: How Generative AI Models Are Redefining Business Intelligence
Artificial Intelligence Business Intelligence Exclusive Infographic Machine Learning
image fx (2)
Monitoring Data Without Turning into Big Brother
Big Data Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

data catalog big data quality
Big DataData QualityPolicy and Governance

Turbo-Charge Data Scientist Productivity with a Data Catalog

8 Min Read
roi of instagram
ExclusiveMachine LearningSocial media

Machine Learning Raises The ROI Of Instagram Business Accounts

6 Min Read
machine learning in accounting
Artificial IntelligenceExclusiveMachine Learning

Can AI Slash the Costs of Accounting Errors in 2020?

5 Min Read

Voodoo Spectrum of Machine Learning and Data Sets

3 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 chatbot
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
Chatbots
AI chatbots
AI Chatbots Can Help Retailers Convert Live Broadcast Viewers into Sales!
Chatbots

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?