SimpleRule

class SimpleRule(val predicate: Predicate, val scoreDistributions: ScoreDistributions, val score: Any, val id: Option[String], val recordCount: Option[Int], val nbCorrect: Option[Int], val confidence: Double, val weight: Double) extends Rule with HasScoreDistributions with PmmlElement

SimpleRule consists of an identifier, a predicate, a score and information on rule performance.

Value parameters:
confidence

Indicates the confidence of the rule.

id

The value of id serves as a unique identifier for the rule. Must be unique within the ruleset.

nbCorrect

Indicates the number of training/test instances on which the rule fired and the prediction was correct.

predicate

the condition upon which the rule fires. For more details on PREDICATE see the section on predicates in TreeModel. This explains how predicates are described and evaluated and how missing values are handled.

recordCount

The number of training/test instances on which the rule fired.

score

The predicted value when the rule fires.

scoreDistributions

Describes the distribution of the predicted value for instances where the rule fires in the training/test data.

weight

Indicates the relative importance of the rule. May or may not be equal to the confidence.

trait Serializable
trait Rule
class Object
trait Matchable
class Any

Value members

Concrete methods

override def fire(series: Series): Array[SimpleRule]
Definition Classes
override def first(series: Series): Option[SimpleRule]
Definition Classes

Inherited methods

Inherited from:
HasExtensions
def getConfidence(value: Any): Double
Inherited from:
HasScoreDistributions
def getProbability(value: Any): Double
Inherited from:
HasScoreDistributions
def getScoreDistribution(value: Any): Option[ScoreDistribution]
Inherited from:
HasScoreDistributions
def hasExtensions: Boolean
Inherited from:
HasExtensions
def probabilities: Map[Any, Double]
Inherited from:
HasScoreDistributions

Concrete fields

val confidence: Double
val id: Option[String]
val nbCorrect: Option[Int]
val recordCount: Option[Int]
val score: Any
val weight: Double