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, sortByRanking
public TargetEntryRanker(double Target)
Target
- Target value for class variablepublic TargetEntryRanker()
public void setOptions(java.util.List Options) throws java.lang.Exception
Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
public double objectiveFunction(BaseEntry Entry)
BaseEntryRanker
NOTE: This function needs to support using either the measured or predicted class depending on the settings
objectiveFunction
in class BaseEntryRanker
Entry
- Entry to be analyzedpublic void train(Dataset data)
BaseEntryRanker
train
in class BaseEntryRanker
data
- Data to use as training set