Skip to content

Commit

Permalink
Better time stamping
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Kuhn authored and Max Kuhn committed Jan 10, 2017
1 parent 244101a commit 67ce327
Show file tree
Hide file tree
Showing 249 changed files with 749 additions and 498 deletions.
5 changes: 3 additions & 2 deletions RegressionTests/Code/ANFIS.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "ANFIS"

Expand Down Expand Up @@ -76,8 +76,9 @@ test_reg_imp <- varImp(test_reg_cv_model)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/AdaBag.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "AdaBag"

Expand Down Expand Up @@ -85,10 +85,11 @@ if(!all(levels(trainY) %in% test_levels))
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/AdaBoost.M1.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "AdaBoost.M1"

Expand Down Expand Up @@ -88,10 +88,11 @@ if(!all(levels(trainY) %in% test_levels))
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/Boruta.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "Boruta"

Expand Down Expand Up @@ -158,8 +158,9 @@ test_reg_none_pred <- predict(test_reg_none_model, testX)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/C5.0.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "C5.0"

Expand Down Expand Up @@ -84,10 +84,11 @@ test_class_imp <- varImp(test_class_cv_model)
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/C5.0Cost.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "C5.0Cost"

Expand Down Expand Up @@ -69,10 +69,11 @@ test_class_imp <- varImp(test_class_cv_model)
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/C5.0Rules.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "C5.0Rules"

Expand Down Expand Up @@ -71,10 +71,11 @@ test_class_imp <- varImp(test_class_cv_model)
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/C5.0Tree.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "C5.0Tree"

Expand Down Expand Up @@ -71,10 +71,11 @@ test_class_imp <- varImp(test_class_cv_model)
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/CSimca.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "CSimca"

Expand Down Expand Up @@ -54,10 +54,11 @@ if(!all(levels(trainY) %in% test_levels))
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/DENFIS.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "DENFIS"

Expand Down Expand Up @@ -76,8 +76,9 @@ test_reg_imp <- varImp(test_reg_cv_model)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/FH.GBML.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "FH.GBML"

Expand Down Expand Up @@ -65,10 +65,11 @@ if(!all(levels(trainY) %in% test_levels))
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/FIR.DM.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "FIR.DM"

Expand Down Expand Up @@ -83,8 +83,9 @@ test_reg_imp <- varImp(test_reg_cv_model)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/FRBCS.CHI.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "FRBCS.CHI"

Expand Down Expand Up @@ -62,10 +62,11 @@ if(!all(levels(trainY) %in% test_levels))
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/FRBCS.W.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "FRBCS.W"

Expand Down Expand Up @@ -62,10 +62,11 @@ if(!all(levels(trainY) %in% test_levels))
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/FS.HGD.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "FS.HGD"

Expand Down Expand Up @@ -76,8 +76,9 @@ test_reg_imp <- varImp(test_reg_cv_model)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/GFS.FR.MOGUL.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "GFS.FR.MOGUL"

Expand Down Expand Up @@ -82,8 +82,9 @@ test_reg_imp <- varImp(test_reg_cv_model)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/GFS.GCCL.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "GFS.GCCL"

Expand Down Expand Up @@ -62,10 +62,11 @@ if(!all(levels(trainY) %in% test_levels))
#########################################################################

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/GFS.LT.RS.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "GFS.LT.RS"

Expand Down Expand Up @@ -76,8 +76,9 @@ test_reg_imp <- varImp(test_reg_cv_model)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/GFS.Thrift.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "GFS.THRIFT"

Expand Down Expand Up @@ -76,8 +76,9 @@ test_reg_imp <- varImp(test_reg_cv_model)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/HYFIS.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "HYFIS"

Expand Down Expand Up @@ -76,8 +76,9 @@ test_reg_imp <- varImp(test_reg_cv_model)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
5 changes: 3 additions & 2 deletions RegressionTests/Code/J48.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
timestamp <- Sys.time()
library(caret)
timestamp <- format(Sys.time(), "%Y_%m_%d_%H_%M")

model <- "J48"

Expand Down Expand Up @@ -69,8 +69,9 @@ test_class_predictors1 <- predictors(test_class_cv_model)
tests <- grep("test_", ls(), fixed = TRUE, value = TRUE)

sInfo <- sessionInfo()
timestamp_end <- Sys.time()

save(list = c(tests, "sInfo", "timestamp"),
save(list = c(tests, "sInfo", "timestamp", "timestamp_end"),
file = file.path(getwd(), paste(model, ".RData", sep = "")))

q("no")
Expand Down
Loading

0 comments on commit 67ce327

Please sign in to comment.