public class ClassProbabilityRanker extends BaseEntryRanker
Usage: <target class>
| Constructor and Description |
|---|
ClassProbabilityRanker() |
ClassProbabilityRanker(java.lang.String TargetClass)
Create new instance of ranker.
|
| Modifier and Type | Method and Description |
|---|---|
double |
objectiveFunction(BaseEntry Entry)
Some kind of objective function that returns a double when given an entry.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
void |
setTargetClass(java.lang.String TargetClass)
Set the name of the class of interest
|
void |
train(Dataset data)
Train ranker.
|
clone, isMaximizing, isUsingMeasured, rankEntries, rankEntries, rankEntries, runObjectiveFunction, setMaximizeFunction, setUseMeasured, sortByRankingpublic ClassProbabilityRanker()
public ClassProbabilityRanker(java.lang.String TargetClass)
TargetClass - Name of target classpublic void setOptions(java.util.List<java.lang.Object> Options)
throws java.lang.Exception
OptionsOptions - Array of options as Objects - can be nulljava.lang.Exception - if problem with inputspublic java.lang.String printUsage()
Optionspublic void setTargetClass(java.lang.String TargetClass)
TargetClass - Name of target classpublic double objectiveFunction(BaseEntry Entry)
BaseEntryRankerNOTE: This function needs to support using either the measured or predicted class depending on the settings
objectiveFunction in class BaseEntryRankerEntry - Entry to be analyzedpublic void train(Dataset data)
BaseEntryRankertrain in class BaseEntryRankerdata - Data to use as training set