public class KNNScoringTask extends water.MRTask<KNNScoringTask>
| Modifier and Type | Field and Description |
|---|---|
KNNDistance |
_distance |
TopNTreeMap<KNNKey,java.lang.Integer> |
_distancesMap |
int |
_domainSize |
byte |
_idColumnType |
int |
_idIndex |
int |
_k |
double[] |
_queryData |
int |
_responseIndex |
| Constructor and Description |
|---|
KNNScoringTask(double[] query,
int k,
int domainSize,
KNNDistance distance,
int idIndex,
byte idType,
int responseIndex)
Go through the whole input frame to find the k near distances and score based on them.
|
| Modifier and Type | Method and Description |
|---|---|
void |
map(water.fvec.Chunk[] cs) |
void |
reduce(KNNScoringTask mrt) |
double[] |
score() |
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, withPostMapActioncopyOver, getDException, hasException, logVerbose, onAck, onAckAck, setExceptionasBytes, clone, compute, compute1, currThrPriority, frozenType, icer, priority, read, readJSON, reloadFromBytes, write, writeJSON__tryComplete, addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryCompleteadapt, 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, tryUnforkpublic int _k
public double[] _queryData
public KNNDistance _distance
public TopNTreeMap<KNNKey,java.lang.Integer> _distancesMap
public int _idIndex
public int _responseIndex
public byte _idColumnType
public int _domainSize
public KNNScoringTask(double[] query,
int k,
int domainSize,
KNNDistance distance,
int idIndex,
byte idType,
int responseIndex)
public void map(water.fvec.Chunk[] cs)
map in class water.MRTask<KNNScoringTask>public void reduce(KNNScoringTask mrt)
reduce in class water.MRTask<KNNScoringTask>public double[] score()