Description Usage Arguments Details Value Author(s) Examples
Interfaces to CORElearn
functions that can be used
in a pipeline implemented by magrittr
.
1 2 3 4 |
data |
data frame, tibble, list, ... |
... |
Other arguments passed to the corresponding interfaced function. |
Interfaces call their corresponding interfaced function.
Object returned by interfaced function.
Roberto Bertolusso
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 | ## Not run:
library(intubate)
library(magrittr)
library(CORElearn)
## ntbt_attrEval: Attribute evaluation
## Original function to interface
attrEval(Species ~ ., iris, estimator = "ReliefFexpRank", ReliefIterations = 30)
## The interface puts data as first parameter
ntbt_attrEval(iris, Species ~ ., estimator = "ReliefFexpRank", ReliefIterations = 30)
## so it can be used easily in a pipeline.
iris %>%
ntbt_attrEval(Species ~ ., estimator = "ReliefFexpRank", ReliefIterations = 30)
## ntbt_CoreModel: Build a classification or regression model
trainIdxs <- sample(x=nrow(iris), size=0.7*nrow(iris), replace=FALSE)
testIdxs <- c(1:nrow(iris))[-trainIdxs]
## Original function to interface
CoreModel(Species ~ ., iris[trainIdxs,], model = "rf",
selectionEstimator = "MDL", minNodeWeightRF = 5,
rfNoTrees = 100, maxThreads = 1)
## The interface puts data as first parameter
ntbt_CoreModel(iris[trainIdxs,], Species ~ ., model = "rf",
selectionEstimator = "MDL", minNodeWeightRF = 5,
rfNoTrees = 100, maxThreads = 1)
## so it can be used easily in a pipeline.
iris[trainIdxs,] %>%
ntbt_CoreModel(Species ~ ., model = "rf",
selectionEstimator = "MDL", minNodeWeightRF = 5,
rfNoTrees = 100, maxThreads = 1)
## ntbt_discretize: Discretization of numeric attributes
## Original function to interface
discretize(Species ~ ., iris, method = "greedy", estimator = "ReliefFexpRank")
## The interface puts data as first parameter
ntbt_discretize(iris, Species ~ ., method = "greedy", estimator = "ReliefFexpRank")
## so it can be used easily in a pipeline.
iris %>%
ntbt_discretize(Species ~ ., method = "greedy", estimator = "ReliefFexpRank")
## ntbt_ordEval: Evaluation of ordered attributes
dat <- ordDataGen(200)
## Original function to interface
ordEval(class ~ ., dat, ordEvalNoRandomNormalizers=100)
## The interface puts data as first parameter
ntbt_ordEval(dat, class ~ ., ordEvalNoRandomNormalizers=100)
## so it can be used easily in a pipeline.
dat %>%
ntbt_ordEval(class ~ ., ordEvalNoRandomNormalizers=100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.