public class TargetEntryRanker extends BaseEntryRanker
Usage: <target>
| Modifier and Type | Field and Description |
|---|---|
protected double |
Target
Target value of class
|
| Constructor and Description |
|---|
TargetEntryRanker()
Create a new instance the target set to 0.0
|
TargetEntryRanker(double Target)
Create a new instance while specifying the target
|
| 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 Options)
Set any options for this object.
|
void |
train(Dataset data)
Train ranker.
|
clone, isMaximizing, isUsingMeasured, rankEntries, rankEntries, rankEntries, runObjectiveFunction, setMaximizeFunction, setUseMeasured, sortByRankingpublic TargetEntryRanker(double Target)
Target - Target value for class variablepublic TargetEntryRanker()
public void setOptions(java.util.List 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 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