arulesCBA | Classification Based on Association Rules in R | Rule Engine library
kandi X-RAY | arulesCBA Summary
kandi X-RAY | arulesCBA Summary
Classification Based on Association Rules in R
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of arulesCBA
arulesCBA Key Features
arulesCBA Examples and Code Snippets
library("arulesCBA")
data("iris")
# learn a classifier
classifier <- CBA(Species ~ ., data = iris)
classifier
CBA Classifier Object
Class: Species=setosa, Species=versicolor, Species=virginica
Default Class: Species=versicolor
N
install.packages("arulesCBA")
library("devtools")
install_github("ianjjohnson/arulesCBA")
Community Discussions
Trending Discussions on arulesCBA
QUESTION
I am looking to discretise continuous features in machine-learning datasets, in particular, using supervised discretisation. It turns out that r [has a package/method for this]1, great! But since I am not proficient in R I have some issues and I would greatly appreciate if you could help.
I get an error
class variable needs to be a factor.
I looked at an example online, and they do not seem to have this problem, but I do. Note that I do not quite understand the syntax V2 ~ .
, other than that V2
should be a column name.
ANSWER
Answered 2020-Apr-01 at 09:26As written in the vignette, this is meant to implement:
several supervised methods to convert continuous variables into a categorical variables (factor) suitable for association rule mining and building associative classifiers.
If you look at your V2 column, it's continuous:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install arulesCBA
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page