|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.result.LiftResultElement
An instance of LiftResultElement
contains information on the lift result for a
specific quantile of data.
Lift is calculated as follows. For a binary classification model, with a designated positive and negative value, test cases are sorted according to how confidently they are predicted to be positive instances (most confidently positive first, most confidently negative last). With regard to that ordering, they are partitioned into quantiles. Then:
Target Densitity
of a quantile is the number of actually positive instances
in that quantile divided by the total number of instances in the quantile.Lift
of a quantile is the ratio of TargetDensity
to the target density over
all the test data. PercentageOfRecordsCumulative
for a given quantile is the percentage
of all test cases represented by the first n
quantiles,
starting at the most-confidently-positive end, up to and including the given quantile.NumberOfTargetsCumulative
for a given quantile is the number of actually
positive instances in the first n
quantiles (defined as above).NumberOfNonTargetsCumulative
is the same, but for actually negative instances.LiftCumulative
for a given quantile is the ratio of the cumulative target
density (which is like TargetDensity
, but computed over the
first n
quantiles, defined as above, instead of just the current quantile) to the target density over all the test data.Targets Cumulative
for a given quantile is the ratio of cumulative positive instances
in that quantile and the total number of positive instances of all quantiles. It measures the
percentage of positive instances captured "so far".
float targetCumulative = liftQuantile*percentageOfRecordsCumulative;
Constructor Summary |
LiftResultElement()
|
Method Summary |
Type | Method |
---|---|
float |
getLiftCumulative()
Returns the cumulative lift. |
float |
getLiftQuantile()
Retruns the value of lift. |
int |
getNumberOfNonTargetsCumulative()
Returns the cumulative number of nontargets. |
int |
getNumberOfTargetsCumulative()
Returns the cumulative number of targets. |
float |
getPercentageOfRecordsCumulative()
Returns cumulative percentage of records. |
float |
getTargetDensity()
Returns the target density. |
float |
getTargetDensityCumulative()
Returns the cumulative target density. |
void |
setLiftCumulative(float liftCumulative)
For internal use only. |
void |
setLiftQuantile(float liftQuantile)
For internal use only. |
void |
setNumberOfNonTargetsCumulative(int numberOfNonTargetsCumulative)
For internal use only. |
void |
setNumberOfTargetsCumulative(int numberOfTargetsCumulative)
For internal use only. |
void |
setPercentageOfRecordsCumulative(float percentageOfRecordsCumulative)
For internal use only. |
void |
setTargetDensity(float targetDensity)
For internal use only. |
void |
setTargetDensityCumulative(float targetDensityCumulative)
For internal use only. |
java.lang.String |
toString()
Returns a formatted string representation of the lift element for the convenience of display. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LiftResultElement()
Method Detail |
public float getPercentageOfRecordsCumulative()
public void setPercentageOfRecordsCumulative(float percentageOfRecordsCumulative)
public float getLiftQuantile()
public void setLiftQuantile(float liftQuantile)
public float getLiftCumulative()
public void setLiftCumulative(float liftCumulative)
public int getNumberOfTargetsCumulative()
public void setNumberOfTargetsCumulative(int numberOfTargetsCumulative)
public int getNumberOfNonTargetsCumulative()
public void setNumberOfNonTargetsCumulative(int numberOfNonTargetsCumulative)
public float getTargetDensity()
public void setTargetDensity(float targetDensity)
public float getTargetDensityCumulative()
public void setTargetDensityCumulative(float targetDensityCumulative)
public java.lang.String toString()
toString
in class java.lang.Object
String - A formatted string of the lift element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |