public class AUUC extends Iced
Modifier and Type | Class and Description |
---|---|
static class |
AUUC.AUUCBuilder
Builder to process input data to build histogram in parallel.
|
static class |
AUUC.AUUCType
AUUC type enum
This is an Enum class, with an exec() function to compute the criteria
from the basic parts, and from an AUUC at a given threshold index.
|
Modifier and Type | Field and Description |
---|---|
double[] |
_aecu |
double[] |
_auucs |
double[] |
_auucsNormalized |
double[] |
_auucsRandom |
AUUC.AUUCType |
_auucType |
int |
_auucTypeIndx |
long[] |
_control |
long[] |
_frequency |
long[] |
_frequencyCumsum |
int |
_maxIdx |
long |
_n |
int |
_nBins |
double[] |
_ths |
long[] |
_treatment |
double[][] |
_uplift |
double[][] |
_upliftNormalized |
double[][] |
_upliftRandom |
long[] |
_yControl |
long[] |
_yTreatment |
static int |
NBINS |
Constructor and Description |
---|
AUUC() |
AUUC(AUUC.AUUCBuilder bldr,
AUUC.AUUCType auucType) |
AUUC(int nBins,
Vec probs,
Vec y,
Vec uplift,
AUUC.AUUCType auucType) |
AUUC(Vec probs,
Vec y,
Vec uplift,
AUUC.AUUCType auucType,
int nbins) |
Modifier and Type | Method and Description |
---|---|
double |
aecu(int idx) |
double |
aecuByType(AUUC.AUUCType type) |
double |
auuc() |
double |
auuc(int idx) |
double |
auucByType(AUUC.AUUCType type) |
double |
auucNormalized() |
double |
auucNormalized(int idx) |
double |
auucNormalizedByType(AUUC.AUUCType type) |
double |
auucRandom() |
double |
auucRandom(int idx) |
double |
auucRandomByType(AUUC.AUUCType type) |
static double[] |
calculateQuantileThresholds(int groups,
Vec preds) |
long |
control(int idx) |
long |
frequency(int idx) |
double |
qini() |
void |
setUplift() |
void |
setUpliftNormalized() |
void |
setUpliftRandom() |
double |
threshold(int idx) |
long |
treatment(int idx) |
double |
uplift(int idx) |
double[] |
upliftByType(AUUC.AUUCType type) |
double[] |
upliftNormalizedByType(AUUC.AUUCType type) |
double[] |
upliftRandomByType(AUUC.AUUCType type) |
long |
yControl(int idx) |
long |
yTreatment(int idx) |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
public final int _nBins
public final int _maxIdx
public final double[] _ths
public final long[] _treatment
public final long[] _control
public final long[] _yTreatment
public final long[] _yControl
public final long[] _frequency
public final long[] _frequencyCumsum
public double[][] _uplift
public double[][] _upliftRandom
public double[][] _upliftNormalized
public final long _n
public static final int NBINS
public final AUUC.AUUCType _auucType
public final int _auucTypeIndx
public double[] _auucs
public double[] _auucsRandom
public double[] _aecu
public double[] _auucsNormalized
public AUUC(Vec probs, Vec y, Vec uplift, AUUC.AUUCType auucType, int nbins)
public AUUC(int nBins, Vec probs, Vec y, Vec uplift, AUUC.AUUCType auucType)
public AUUC(AUUC.AUUCBuilder bldr, AUUC.AUUCType auucType)
public AUUC()
public double threshold(int idx)
public long treatment(int idx)
public long control(int idx)
public long yTreatment(int idx)
public long yControl(int idx)
public long frequency(int idx)
public double uplift(int idx)
public double[] upliftByType(AUUC.AUUCType type)
public double[] upliftNormalizedByType(AUUC.AUUCType type)
public double[] upliftRandomByType(AUUC.AUUCType type)
public void setUplift()
public void setUpliftRandom()
public void setUpliftNormalized()
public static double[] calculateQuantileThresholds(int groups, Vec preds)
public double auucByType(AUUC.AUUCType type)
public double auucRandomByType(AUUC.AUUCType type)
public double aecuByType(AUUC.AUUCType type)
public double auucNormalizedByType(AUUC.AUUCType type)
public double auuc(int idx)
public double auuc()
public double auucRandom(int idx)
public double auucRandom()
public double aecu(int idx)
public double qini()
public double auucNormalized(int idx)
public double auucNormalized()