public class AccMethodFMeasureWeighted extends Object implements AccMethodTwoValued, AccMethodWithBeta
| Constructor and Description |
|---|
AccMethodFMeasureWeighted() |
AccMethodFMeasureWeighted(boolean init) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAccOrTooWeak2(int tp,
int fn,
int fp,
int tn,
double noise)
Compute accuracy according to this method
|
double |
getNegWeight() |
double |
getPosWeight() |
void |
init()
Method to be called after the component has been configured.
|
boolean |
isBalanced() |
void |
setBalanced(boolean balanced) |
void |
setBeta(double beta)
set the beta value;
the consumer of the accuracy method should call this on all implementing accuracy methods
|
void |
setNegWeight(double negWeight) |
void |
setPosWeight(double posWeight) |
public AccMethodFMeasureWeighted()
public AccMethodFMeasureWeighted(boolean init)
public void init()
Componentpublic double getAccOrTooWeak2(int tp, int fn, int fp, int tn, double noise)
AccMethodTwoValuedgetAccOrTooWeak2 in interface AccMethodTwoValuedtp - True Positives (positive as positive)fn - False Negative (positive as negative)fp - False Positive (negative as positive)tn - True Negative (negative as negative)noise - Noisepublic boolean isBalanced()
public void setBalanced(boolean balanced)
public double getPosWeight()
public void setPosWeight(double posWeight)
public double getNegWeight()
public void setNegWeight(double negWeight)
public void setBeta(double beta)
AccMethodWithBetasetBeta in interface AccMethodWithBeta
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann