Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


SDR (version 0.7.0.0)

Rule.evaluate: Evaluate a single rule.

Description

Evaluate a single rule.

Usage

Rule.evaluate(rule, dataset, data, categoricalValues, numericalValues, t_norm = 1, ruleWeight = 0)

Arguments

rule
The rule we want to evaluate (Class "Rule").
dataset
The keel dataset object with the examples to compare with the rule (Class "keel")
data
Matrix with the data of the dataset, one colum per rule. The data must not contain the last column, the class. (use .separar for this task and convert the list into a matrix)
categoricalValues
a logical vector indicating which attributes in the dataset are categorical
numericalValues
a logical vector indicating which attributes in the dataset are numerical
t_norm
The T-norm to use. 0 for minimum t-norm, 1 for product t-norm (default: 1)
ruleWeight
An integer with the rule weighting method.
  • 0 -> Classic Certainty Factor weight
  • 1 -> Penalized Certainty Factor weight II
  • 2 > Penalized Certainty Factor weight IV
  • 3 -> No Rule Weight

Value

The rule evaluated.