|
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.PriorProbabilities
An instance of PriorProbabilities
contains prior probabilities corresponding to target values. Priors are an optional input for building classification models. A prior probability is assigned to each target class and used to overcome a known bias in the sampling procedure that was used to collect the data presented to the model.
For example, consider two target classes, responders and non-responders. Suppose that responders make up only 1% of population. For reasons of cost, convenience, or because of the rarity of the responders, the data might be collected such that it consists of 50% responders and 50% non-responders, thereby over-sampling the responder population. To correct this condition, the user may specify prior probabilities for each class when no known sampling bias exists, the user may specify the priors as NULL, indicating to the algorithm that the priors are to be constructed internally from the training table data.
Constructor Summary | |
PriorProbabilities() Creates an empty PriorProbabilities instance. |
Method Summary | |
void |
addEntry(Category target, float probability) Deprecated. As of 10.1.0, replaced by addEntry(Category target, Object probability) method. |
void |
addEntry(Category target, java.lang.Object probability) Adds a new prior probability for the target value. |
java.lang.Object |
getPrior(Category target) Returns the prior probability value associated with the given target Category. |
float |
getValue(Category target) Deprecated. As of 10.1.0, replaced by Object getValue(Category target) method. |
Category[] |
listTargetValues() Lists all target Categories present in the PriorProbabilities instance. |
void |
validate() Validates the set of priors entries to ensure all probability values are between 0 and 1 and the total of all values is less than or equal to 1. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PriorProbabilities()
PriorProbabilities
instance.Method Detail |
public void addEntry(Category target, java.lang.Object probability) throws ODMException
ODMException
-
public void addEntry(Category target, float probability) throws ODMException
addEntry(Category target, Object probability)
method.ODMException
-
ODMException
public java.lang.Object getPrior(Category target) throws ODMException
ODMException<</CODE> - when no entry was found in the prior of the given target
ODMException
public float getValue(Category target) throws ODMException
Object getValue(Category target)
method.ODMException
- wnen no entry was found in the prior of the given targetpublic void validate() throws ODMException
ODMException
-
ODMException
public Category[] listTargetValues()
PriorProbabilities
instance.Category
in the prior
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |