Skip to content

Commit

Permalink
Update newRandomForest.R
Browse files Browse the repository at this point in the history
adding R6::
  • Loading branch information
jreps committed Apr 18, 2024
1 parent dda160f commit 2921d61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/newRandomForest.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#library(R6)
HyperparameterNtrees <- R6Class("HyperparameterNtrees", list(
HyperparameterNtrees <- R6::R6Class("HyperparameterNtrees", list(
min = NULL,
max = NULL,
randomSample = 10,
Expand Down Expand Up @@ -190,7 +190,7 @@ predictSklearnBase <- function(
return(cohort)
}

RandomForest <- R6Class("RandomForest", list(
RandomForest <- R6::R6Class("RandomForest", list(
seed = NULL,
nJobs = NULL,
modelLocation = NULL,
Expand Down Expand Up @@ -435,7 +435,7 @@ RandomForest <- R6Class("RandomForest", list(
#rfModel$print

#library(R6)
CrossValidationSampler <- R6Class("CrossValidationSampler", list(
CrossValidationSampler <- R6::R6Class("CrossValidationSampler", list(
seed = NULL,
k = NULL,
stratified = NULL,
Expand Down Expand Up @@ -532,7 +532,7 @@ computeAucNew <- function(prediction){
}


PerformanceFunction <- R6Class("PerformanceFunction", list(
PerformanceFunction <- R6::R6Class("PerformanceFunction", list(
maxmize = NULL,
metricFunctionName = NULL,
aggregateFunctionName = NULL,
Expand Down Expand Up @@ -566,7 +566,7 @@ PerformanceFunction <- R6Class("PerformanceFunction", list(
}
))

GridHyperparameter <- R6Class("GridHyperparameter", list(
GridHyperparameter <- R6::R6Class("GridHyperparameter", list(
type = 'grid search',
hyperparameterList = NULL,
currentIndex = 1,
Expand Down

0 comments on commit 2921d61

Please sign in to comment.