oracle.dmt.odm.model
Class ConditionalProbabilityExpression
java.lang.Object
|
+--oracle.dmt.odm.MiningObject
|
+--oracle.dmt.odm.model.ConditionalProbabilityExpression
- All Implemented Interfaces:
- java.io.Serializable
- public class ConditionalProbabilityExpression
- extends MiningObject
An instance of ConditionalProbabilityExpression
contains the
probability of a consequent conditioned on an array of antecedent values.
The consequent can be thought of as a target value and the antecedents as predictors.
This class is used in conjuction with the Adaptive Bayes Network algorithm.
The Bayes formula shows how to compute the probability of the target conditioned
on the predictors in terms of the products of the predictors conditioned on the
value of the target and, possibly other predictors. This is often easier to compute
and is what AdaptiveBayesNetwork computes. In this form, the target can be one
of the antecedents. ConditionalProbabilityExpression
contain a consequent
MiningAttribute
, an array of antecedent MiningAttribute
s,
a count, and a probability.
An example of a ConditionalProbabilityExpression
is the probability
that a person is in the top income bracket given that the person is age 45, female,
married, and an attourney. The consequent is "income bracket = top". The antecedent
attributes are "age=45", "sex = Female", "marital status = married", and "occupation = attourney".
The count could be 25 out of a sample of 1,000 with a probability of 2.5%.
- Since:
- 9.2.0
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConditionalProbabilityExpression
public ConditionalProbabilityExpression()
getConsequentMiningAttribute
public MiningAttribute getConsequentMiningAttribute()
- Returns the consequent
MiningAttribute
.
- Returns:
MiningAttribute
- the consequent mining attribute
getAntecedentMiningAttribute
public MiningAttribute[] getAntecedentMiningAttribute()
- Returns an array of antecedent
MiningAttribute
s.
- Returns:
MiningAttribute
[] - the array of antecedent mining attributes, null if none
getCount
public int getCount()
- Returns the count of entities meeting the antecedent and consequent conditions.
- Returns:
- int - the count of entities meeting the antecedent and consequent conditions
getProbability
public float getProbability()
- Returns the conditional probability of the consequent.
- Returns:
- float - the conditional probability of the consequent
getMiningAttributeValue
public Category getMiningAttributeValue(MiningAttribute miningAttribute)
- Returns the
Category
value associated with the mining attribute.
- Returns:
- String - the
Category
value associated with the mining attribute