public class GlobalOnlineAuc extends Object implements OnlineAuc
GroupedOnlineAuc| Modifier and Type | Field and Description |
|---|---|
static int |
HISTORY |
| Constructor and Description |
|---|
GlobalOnlineAuc() |
| Modifier and Type | Method and Description |
|---|---|
double |
addSample(int category,
double score) |
double |
addSample(int category,
String groupKey,
double score) |
double |
auc() |
void |
readFields(DataInput in) |
void |
setPolicy(org.apache.mahout.math.stats.GlobalOnlineAuc.ReplacementPolicy policy) |
void |
setWindowSize(int windowSize) |
double |
value() |
void |
write(DataOutput out) |
public static final int HISTORY
public double addSample(int category,
String groupKey,
double score)
public double addSample(int category,
double score)
public double value()
public void setPolicy(org.apache.mahout.math.stats.GlobalOnlineAuc.ReplacementPolicy policy)
public void setWindowSize(int windowSize)
setWindowSize in interface OnlineAucpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.