Packages

c

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.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleRule
  2. PmmlElement
  3. Serializable
  4. HasExtensions
  5. HasScoreDistributions
  6. Rule
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SimpleRule(predicate: Predicate, scoreDistributions: ScoreDistributions, score: Any, id: Option[String] = None, recordCount: Option[Int] = None, nbCorrect: Option[Int] = 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: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. val confidence: Double
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def extensions: Seq[Extension]
    Definition Classes
    HasExtensions
  10. def fire(series: Series): Array[SimpleRule]
    Definition Classes
    SimpleRuleRule
  11. def first(series: Series): Option[SimpleRule]
    Definition Classes
    SimpleRuleRule
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def getConfidence(value: Any): Double
    Definition Classes
    HasScoreDistributions
  14. def getProbability(value: Any): Double
    Definition Classes
    HasScoreDistributions
  15. def getScoreDistribution(value: Any): Option[ScoreDistribution]
    Definition Classes
    HasScoreDistributions
  16. def hasExtensions: Boolean
    Definition Classes
    HasExtensions
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. val id: Option[String]
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. val nbCorrect: Option[Int]
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. val predicate: Predicate
    Definition Classes
    SimpleRuleRule
  25. def probabilities: Map[Any, Double]
    Definition Classes
    HasScoreDistributions
  26. val recordCount: Option[Int]
  27. val score: Any
  28. val scoreDistributions: ScoreDistributions
    Definition Classes
    SimpleRuleHasScoreDistributions
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. val weight: Double

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from PmmlElement

Inherited from Serializable

Inherited from HasExtensions

Inherited from HasScoreDistributions

Inherited from Rule

Inherited from AnyRef

Inherited from Any

Ungrouped