Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Data Science with Anaconda

You're reading from  Hands-On Data Science with Anaconda

Product type Book
Published in May 2018
Publisher Packt
ISBN-13 9781788831192
Pages 364 pages
Edition 1st Edition
Languages
Authors (2):
Yuxing Yan Yuxing Yan
Profile icon Yuxing Yan
James Yan James Yan
Profile icon James Yan
View More author details

Table of Contents (15) Chapters

Preface 1. Ecosystem of Anaconda 2. Anaconda Installation 3. Data Basics 4. Data Visualization 5. Statistical Modeling in Anaconda 6. Managing Packages 7. Optimization in Anaconda 8. Unsupervised Learning in Anaconda 9. Supervised Learning in Anaconda 10. Predictive Data Analytics – Modeling and Validation 11. Anaconda Cloud 12. Distributed Computing, Parallel Computing, and HPCC 13. References 14. Other Books You May Enjoy

Implementation of supervised learning via R

As we have discussed in the previous chapter, the best choice to conduct various tests for supervised learning is applying an R package called Rattle. Here, we show two more examples. Let's first look at the iris dataset:

> library(rattle) 
> rattle() 

The next example is using the diabetes dataset, shown in the screenshot here:

For example, we could choose the logistic model after clicking Model on the menu bar. After clicking on Execute, we would have the following output:

Based on the significant level of p-values, we could see that in addition to the intercept, x1, x2, x3, and x6 are statistically significant.

The next example is from the R package called LogicReg. The code is given here:

library(LogicReg) 
data(logreg.testdat) 
y<-logreg.testdat[,1] 
x<-logreg.testdat[, 2:21] 
n=1000 
n2=25000 
set.seed(123) ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}