|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.model.ConditionalProbabilityExpression
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%.
Constructor Summary | |
ConditionalProbabilityExpression() |
Method Summary | |
MiningAttribute[] |
getAntecedentMiningAttribute() Returns an array of antecedent MiningAttribute s. |
MiningAttribute |
getConsequentMiningAttribute() Returns the consequent MiningAttribute . |
int |
getCount() Returns the count of entities meeting the antecedent and consequent conditions. |
Category |
getMiningAttributeValue(MiningAttribute miningAttribute) Returns the Category value associated with the mining attribute. |
float |
getProbability() Returns the conditional probability of the consequent. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConditionalProbabilityExpression()
Method Detail |
public MiningAttribute getConsequentMiningAttribute()
MiningAttribute
.public MiningAttribute[] getAntecedentMiningAttribute()
MiningAttribute
s.public int getCount()
public float getProbability()
public Category getMiningAttributeValue(MiningAttribute miningAttribute)
Category
value associated with the mining attribute.Category
value associated with the mining attribute
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |