Learn R Programming

RKEEL (version 1.3.3)

runParallel: Run Parallel

Description

Run a set of RKEEL algorithms in parallel

Usage

runParallel(algorithmList, cores)

Arguments

algorithmList

List of RKEEL Algorithms to be executed

cores

Number of cores to execute in parallel. If it is not specified, it detects the cores automatically and execute the experiment in all of them

Value

Returns a list with the executed algorithms

Examples

Run this code
# NOT RUN {
#Load datasets
#iris_train <- RKEEL::loadKeelDataset("iris_train")
#iris_test <- RKEEL::loadKeelDataset("iris_test")

#Create algorithms
#learner_C45_C <- RKEEL::C45_C(iris_train, iris_test)
#learner_FRNN_C <- RKEEL::FRNN_C(iris_train, iris_test)
#learner_FuzzyKNN_C <- RKEEL::FuzzyKNN_C(iris_train, iris_test)
#learner_KNN_C <- RKEEL::KNN_C(iris_train, iris_test)
#learner_Logistic_C <- RKEEL::Logistic_C(iris_train, iris_test)
#learner_LDA_C <- RKEEL::LDA_C(iris_train, iris_test)

#Create list
#algorithms <- list(learner_C45_C, learner_FRNN_C, learner_FuzzyKNN_C,
#   learner_KNN_C, learner_Logistic_C, learner_LDA_C)

#Run algorithms in parallel in two cores
#par <- RKEEL::runParallel(algorithms, 2)
# }

Run the code above in your browser using DataLab