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.