-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibraries.R
35 lines (32 loc) · 978 Bytes
/
libraries.R
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
install_and_load = function(a){
# install packages
if(a == TRUE){
install.packages("randomForest") # random forests
install.packages("ranger") # faster random forests (C in the backround)
install.packages('glmnet') # Ridge and Lasso
install.packages("caret", dependencies = TRUE)
install.packages('gbm') # gradient boosted machines
install.packages("xgboost") # extreme gradient boosting
install.packages("dplyr") # basic data manipulation procedures
install.packages('tidymodels')
install.packages("broom")
install.packages("broom.mixed")
install.packages("ggplot") # plotting
install.packages("foreach")
install.packages('doParallel')
}
# load packages
library(randomForest)
library(ranger)
library(glmnet)
library(caret)
library(gbm)
library(xgboost)
library(dplyr)
library(tidymodels)
library(broom)
library(broom.mixed)
library(ggplot2)
library(foreach)
library(doParallel)
}