Learn R Programming

rCBA (version 0.4.3)

buildFPGrowth: Build classifier function (FP-Growth-based)

Description

Automatic build of the classification model using the FP-Growth algorithm

Usage

buildFPGrowth(train, className = NULL, verbose = TRUE,
  parallel = TRUE)

Arguments

train

data.frame or transactions from arules with input data

className

column name with the target class - default is the last column

verbose

verbose indicator

parallel

parallel indicator

Value

list with parameters and model as data.frame with rules

Examples

Run this code
# NOT RUN {
library("rCBA")
data("iris")

output <- rCBA::buildFPGrowth(iris[sample(nrow(iris), 10),], "Species",
 parallel=FALSE, verbose=TRUE)
inspect(output$model)

# }

Run the code above in your browser using DataLab