public class AccMethodPredAccWeighted extends Object implements AccMethodTwoValued
Constructor and Description |
---|
AccMethodPredAccWeighted() |
AccMethodPredAccWeighted(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 |
setNegWeight(double negWeight) |
void |
setPosWeight(double posWeight) |
public AccMethodPredAccWeighted()
public AccMethodPredAccWeighted(boolean init)
public void init()
Component
public double getAccOrTooWeak2(int tp, int fn, int fp, int tn, double noise)
AccMethodTwoValued
getAccOrTooWeak2
in interface AccMethodTwoValued
tp
- 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)
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann