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.

Linear Supertypes
PmmlElement, Serializable, HasExtensions, HasScoreDistributions, Rule, AnyRef, Any
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]) @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 finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def fire(series: Series): Array[SimpleRule]
    Definition Classes
    SimpleRuleRule
  12. def first(series: Series): Option[SimpleRule]
    Definition Classes
    SimpleRuleRule
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getConfidence(value: Any): Double
    Definition Classes
    HasScoreDistributions
  15. def getProbability(value: Any): Double
    Definition Classes
    HasScoreDistributions
  16. def getScoreDistribution(value: Any): Option[ScoreDistribution]
    Definition Classes
    HasScoreDistributions
  17. def hasExtensions: Boolean
    Definition Classes
    HasExtensions
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. val id: Option[String]
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val nbCorrect: Option[Int]
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. val predicate: Predicate
    Definition Classes
    SimpleRuleRule
  26. def probabilities: Map[Any, Double]
    Definition Classes
    HasScoreDistributions
  27. val recordCount: Option[Int]
  28. val score: Any
  29. val scoreDistributions: ScoreDistributions
    Definition Classes
    SimpleRuleHasScoreDistributions
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. val weight: Double

Inherited from PmmlElement

Inherited from Serializable

Inherited from HasExtensions

Inherited from HasScoreDistributions

Inherited from Rule

Inherited from AnyRef

Inherited from Any

Ungrouped