Class

org.pmml4s.model

AssociationRule

Related Doc: package model

Permalink

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)

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val affinity: Option[Double]

    Permalink

    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)]

  5. val antecedent: String

    Permalink

    The id value of the itemset which is the antecedent of the rule.

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

  6. var antecedentItemset: Set[String]

    Permalink
  7. lazy val antecedentRule: String

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

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

    Permalink

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

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

    Definition Classes
    AssociationRuleHasConfidence
  11. val consequent: String

    Permalink

    The id value of the itemset which is the consequent of the rule.

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

  12. var consequentItemset: Set[String]

    Permalink
  13. lazy val consequentRule: String

    Permalink
  14. def entityId: String

    Permalink
    Definition Classes
    AssociationRuleHasEntityId
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    HasExtensions
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def fire(itemset: Set[String], algorithm: Algorithm): Boolean

    Permalink
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hasExtensions: Boolean

    Permalink
    Definition Classes
    HasExtensions
  22. def hashCode(): Int

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

    Permalink

    An identification to uniquely identify an association rule.

  24. var indexId: String

    Permalink
  25. def init(idToItemset: Map[String, Set[String]], index: Int): Unit

    Permalink
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. val leverage: Option[Double]

    Permalink

    Another measure of interestingness is 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)

  28. val lift: Option[Double]

    Permalink

    A very popular measure of interestingness of a rule is 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)

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

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def predictedValue: Any

    Permalink
    Definition Classes
    AssociationRuleHasPredictedValue
  33. lazy val rule: String

    Permalink
  34. val support: Double

    Permalink

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

  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @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