org.pmml4s.model

SimpleRule

class SimpleRule extends Rule with HasScoreDistributions with PmmlElement

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

Linear Supertypes
PmmlElement, Serializable, Serializable, HasExtensions, HasScoreDistributions, Rule, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SimpleRule
  2. PmmlElement
  3. Serializable
  4. Serializable
  5. HasExtensions
  6. HasScoreDistributions
  7. Rule
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleRule(predicate: Predicate, scoreDistributions: ScoreDistributions, score: Any, id: Option[String] = scala.None, recordCount: Option[Int] = scala.None, nbCorrect: Option[Int] = scala.None, confidence: Double = 1.0, weight: Double = 1.0)

    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.

    scoreDistributions

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

    score

    The predicted value when the rule fires.

    id

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

    recordCount

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

    nbCorrect

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

    confidence

    Indicates the confidence of the rule.

    weight

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

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val confidence: Double

    Indicates the confidence of the rule.

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def extensions: Seq[Extension]

    Definition Classes
    HasExtensions
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def fire(series: Series): Array[SimpleRule]

    Definition Classes
    SimpleRuleRule
  14. def first(series: Series): Option[SimpleRule]

    Definition Classes
    SimpleRuleRule
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def getConfidence(value: Any): Double

    Definition Classes
    HasScoreDistributions
  17. def getProbability(value: Any): Double

    Definition Classes
    HasScoreDistributions
  18. def getScoreDistribution(value: Any): Option[ScoreDistribution]

    Definition Classes
    HasScoreDistributions
  19. def hasExtensions: Boolean

    Definition Classes
    HasExtensions
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. val id: Option[String]

    The value of id serves as a unique identifier for the rule.

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

  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. val nbCorrect: Option[Int]

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

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. val predicate: Predicate

    the condition upon which the rule fires.

    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.

    Definition Classes
    SimpleRuleRule
  28. def probabilities: Map[Any, Double]

    Definition Classes
    HasScoreDistributions
  29. val recordCount: Option[Int]

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

  30. val score: Any

    The predicted value when the rule fires.

  31. val scoreDistributions: ScoreDistributions

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

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

    Definition Classes
    SimpleRuleHasScoreDistributions
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. val weight: Double

    Indicates the relative importance of the rule.

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

Inherited from PmmlElement

Inherited from Serializable

Inherited from Serializable

Inherited from HasExtensions

Inherited from HasScoreDistributions

Inherited from Rule

Inherited from AnyRef

Inherited from Any

Ungrouped