Packages

c

org.pmml4s.model

AssociationRule

class AssociationRule extends HasPredictedValue with HasEntityId with HasConfidence with PmmlElement

We consider association rules of the form "<antecedent itemset> => <consequent itemset>" next:

Linear Supertypes
PmmlElement, Serializable, Serializable, HasExtensions, HasConfidence, HasEntityId, HasPredictedValue, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AssociationRule
  2. PmmlElement
  3. Serializable
  4. Serializable
  5. HasExtensions
  6. HasConfidence
  7. HasEntityId
  8. HasPredictedValue
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AssociationRule(antecedent: String, consequent: String, support: Double, confidence: Double, lift: Option[Double] = None, leverage: Option[Double] = None, affinity: Option[Double] = None, id: Option[String] = None)

    antecedent

    The id value of the itemset which is the antecedent of the rule. We represent the itemset by the letter A.

    consequent

    The id value of the itemset which is the consequent of the rule. We represent the itemset by the letter C.

    support

    The support of the rule, that is, the relative frequency of transactions that contain A and C: support(A->C) = support(A+C)

    confidence

    The confidence of the rule: confidence(A->C) = support(A+C) / support(A)

    lift

    A very popular measure of interestingness of a rule is lift. Lift values greater than 1.0 indicate that transactions containing A tend to contain C more often than transactions that do not contain A: lift(A->C) = confidence(A->C) / support(C)

    leverage

    Another measure of interestingness is leverage. An association with higher frequency and lower lift may be more interesting than an alternative rule with lower frequency and higher lift. The former can be more important in practice because it applies to more cases. The value is the difference between the observed frequency of A+C and the frequency that would be expected if A and C were independent: leverage(A->C) = support(A->C) - support(A)*support(C)

    affinity

    Also known as Jaccard Similarity, affinity is a measure of the transactions that contain both the antecedent and consequent (intersect) compared to those that contain the antecedent or the consequent (union): affinity(A->C) = support(A+C) / [ support(A) + support(C) - support(A+C)]

    id

    An identification to uniquely identify an association rule.

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. val affinity: Option[Double]
  5. val antecedent: String
  6. var antecedentItemset: Set[String]
  7. lazy val antecedentRule: String
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. val confidence: Double
    Definition Classes
    AssociationRuleHasConfidence
  11. val consequent: String
  12. var consequentItemset: Set[String]
  13. lazy val consequentRule: String
  14. def entityId: String
    Definition Classes
    AssociationRuleHasEntityId
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def extensions: Seq[Extension]
    Definition Classes
    HasExtensions
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def fire(itemset: Set[String], algorithm: Algorithm): Boolean
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hasExtensions: Boolean
    Definition Classes
    HasExtensions
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. val id: Option[String]
  24. var indexId: String
  25. def init(idToItemset: Map[String, Set[String]], index: Int): Unit
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. val leverage: Option[Double]
  28. val lift: Option[Double]
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def predictedValue: Any
    Definition Classes
    AssociationRuleHasPredictedValue
  33. lazy val rule: String
  34. val support: Double
  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from PmmlElement

Inherited from Serializable

Inherited from Serializable

Inherited from HasExtensions

Inherited from HasConfidence

Inherited from HasEntityId

Inherited from HasPredictedValue

Inherited from AnyRef

Inherited from Any

Ungrouped