public class AccMethodAMeasure extends Object implements Component, AccMethodTwoValued, AccMethodWithBeta
Constructor and Description |
---|
AccMethodAMeasure() |
AccMethodAMeasure(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
|
void |
init()
Method to be called after the component has been configured.
|
void |
setBeta(double beta)
set the beta value;
the consumer of the accuracy method should call this on all implementing accuracy methods
|
public AccMethodAMeasure()
public AccMethodAMeasure(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 void setBeta(double beta)
AccMethodWithBeta
setBeta
in interface AccMethodWithBeta
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann