public class PredictionConfidencePenalty extends java.lang.Object implements PenaltyFunction
| Constructor and Description |
|---|
PredictionConfidencePenalty(java.lang.Object argumentList)
Constructs a new PredictionConfidencePenalty, the arguments are specified as an String[] passed as an object for classloading.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculateMetricFromScratch()
Calculates the metric from the current subnetwork/ranking
|
double |
getCoef()
Gets the relative weight for this penalty
|
double |
getMetric()
Returns the current penalty metric (unmapped to the cost)
|
java.lang.String |
getPenaltyName()
The penalty name, used for logging functionality
|
long |
getPenaltyScore()
Returns the current penalty score (metric mapped on cost function)
|
boolean |
isGlobalPenalty()
Indicates if this penalty works on the ranking or on (sub)network level
|
void |
revertIncrementalPenalty()
Reverts the penalty score to the previous value, discarding any changes made by the latest incremental update
|
void |
setCoef(double coef)
Sets the relative weight for this penalty
|
void |
setNetwork(Network predictionNetwork)
Sets the network/ranking associated with this penalty
|
void |
updateIncrementalPenalty()
Calculates the new penalty score in an incremental way after (small) changes have been to the network
|
public PredictionConfidencePenalty(java.lang.Object argumentList)
argumentList - an Object in the form of a String arraypublic java.lang.String getPenaltyName()
PenaltyFunctiongetPenaltyName in interface PenaltyFunctionpublic void calculateMetricFromScratch()
PenaltyFunctioncalculateMetricFromScratch in interface PenaltyFunctionpublic double getMetric()
PenaltyFunctiongetMetric in interface PenaltyFunctionpublic long getPenaltyScore()
PenaltyFunctiongetPenaltyScore in interface PenaltyFunctionpublic void updateIncrementalPenalty()
PenaltyFunctionupdateIncrementalPenalty in interface PenaltyFunctionpublic void revertIncrementalPenalty()
PenaltyFunctionrevertIncrementalPenalty in interface PenaltyFunctionpublic boolean isGlobalPenalty()
PenaltyFunctionisGlobalPenalty in interface PenaltyFunctionpublic void setNetwork(Network predictionNetwork)
PenaltyFunctionsetNetwork in interface PenaltyFunctionpredictionNetwork - network or ranking associated with this penaltypublic double getCoef()
PenaltyFunctiongetCoef in interface PenaltyFunctionpublic void setCoef(double coef)
PenaltyFunctionsetCoef in interface PenaltyFunctioncoef - the relative weight