public static class AstFairnessMetrics.FairnessMRTask extends MRTask
MRTask.PostMapAction<T extends MRTask.PostMapAction<T>>
DTask.DKeyTask<T extends DTask.DKeyTask,V extends Keyed>, DTask.RemoveCall
Modifier and Type | Field and Description |
---|---|
static double |
FISHER_TEST_REL_ERROR |
static int |
GTEST_THRESHOLD |
Constructor and Description |
---|
FairnessMRTask(int[] protectedColsIdx,
int[] cardinalities,
int responseIdx,
int predictionIdx,
int favourableClass) |
Modifier and Type | Method and Description |
---|---|
Frame |
getMetrics(java.lang.String[] protectedCols,
Frame fr,
Model model,
java.lang.String[] reference,
java.lang.String frName) |
java.util.Map<java.lang.String,Frame> |
getROCInfo(Model model,
Frame fr,
java.lang.String frName) |
protected java.lang.String |
keyToString(int value,
Frame fr) |
void |
map(Chunk[] cs)
Override with your map implementation.
|
int |
pColsToKey(int[] indices) |
void |
reduce(MRTask mrt)
Override to combine results from 'mrt' into 'this' MRTask.
|
appendables, asyncExecOnAllNodes, block, closeLocal, compute2, dfork, dfork, dfork, dfork, dfork, dinvoke, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAll, doAllNodes, getResult, getResult, isReleasable, map, map, map, map, map, map, map, map, map, map, map, modifiesVolatileVecs, onCompletion, onExceptionalCompletion, outputFrame, outputFrame, outputFrame, postGlobal, profile, profString, self, setupLocal, withPostMapAction
copyOver, getDException, hasException, logVerbose, onAck, onAckAck, setException
asBytes, clone, compute, compute1, currThrPriority, frozenType, icer, priority, read, readJSON, reloadFromBytes, write, writeJSON
__tryComplete, addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryComplete
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
public static final int GTEST_THRESHOLD
public static final double FISHER_TEST_REL_ERROR
public FairnessMRTask(int[] protectedColsIdx, int[] cardinalities, int responseIdx, int predictionIdx, int favourableClass)
public int pColsToKey(int[] indices)
protected java.lang.String keyToString(int value, Frame fr)
public void map(Chunk[] cs)
MRTask
public void reduce(MRTask mrt)
MRTask
public Frame getMetrics(java.lang.String[] protectedCols, Frame fr, Model model, java.lang.String[] reference, java.lang.String frName)