Section: 20 Prediction models from R library

20.1 Introduction

Believe it or not you are ready now to use pretty much any machine learning package from the extensive R library.
In other words you can drive any car without knowing how the engine works. This you can find out by taking more advanced classes in Machine learning from computer science, statistics or machine learning departments.

As per CRAN there are around 8,341 packages that are currently available. Apart from CRAN, there are other repositories which contribute multiple packages. The simple straightforward syntax to install any of these machine learning packages is: install.packages (โ€œMLPackageโ€).

Install Packages(โ€˜MLPackageโ€™)

Library(MLPackage)

MlPackage<-MLPackage(Formula, data=YOUR_TRAINING,โ€ฆ)

Predict(MLPackage, newdata=YOUR_TESTINGโ€ฆ)

Error <- โ€ฆโ€ฆ

MLPackage can be rpart, Random Forests, naive Bayes, LDA, SVM, Neural Network and many others.