-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibraries.R
More file actions
63 lines (53 loc) · 1.59 KB
/
Libraries.R
File metadata and controls
63 lines (53 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#Author @ Mohammed 26/01/2017
#Code used to Fetch/install/Load all libraries required
print("============== Beginning to load libraries ===================")
setwd("D:/RPROJECTS/PMS_FINAL_Project")
#Function To check if
checkInstallLoad <- function(libName)
{
if(!require(libName, character.only=TRUE))
{
install.packages(libName)
require(libName, character.only=TRUE)
}
}
#Calling the libraries for Decision tree
checkInstallLoad("RWeka")
checkInstallLoad("partykit")
#calling the libraries for Logistic Regression
checkInstallLoad("car")
#calling the libraries for Naive Bayes
checkInstallLoad("e1071")
#calling the libraries for Random forest
checkInstallLoad("class")
checkInstallLoad("data.table")
checkInstallLoad("Matrix")
checkInstallLoad("YaleToolkit")
checkInstallLoad("Amelia")
checkInstallLoad("Metrics")
checkInstallLoad("plyr")
checkInstallLoad("dplyr")
checkInstallLoad("stringr")
checkInstallLoad("lubridate")
checkInstallLoad("ggplot2")
checkInstallLoad("plot3D")
checkInstallLoad("pROC")
checkInstallLoad("caret")
checkInstallLoad("caretEnsemble")
checkInstallLoad("e1071")
checkInstallLoad("randomForest")
checkInstallLoad("xgboost")
checkInstallLoad("rpart")
checkInstallLoad("C50")
checkInstallLoad("adabag")
checkInstallLoad("arules")
checkInstallLoad("ROCR")
checkInstallLoad("nnet")
checkInstallLoad("car")
checkInstallLoad("Ckmeans.1d.dp")
checkInstallLoad("psych")
#For Boruta
checkInstallLoad("Boruta")
#For Smote
checkInstallLoad("DMwR")
print("============== Completed loading libraries ===================")