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 OnlineAuc
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.