public class VotesCollectorDataCache extends Object implements Callable<Double>
In classification, does not return the class distribution, but only the class index of the dominant class.
Implements callable so it can be run in multiple threads.
Modifier and Type | Field and Description |
---|---|
protected DataCache |
data |
protected boolean[][] |
inBag
NumTrees x numInstances indicating out-of-bag instances.
|
protected int |
instanceIdx |
protected Classifier[] |
m_Classifiers |
Constructor and Description |
---|
VotesCollectorDataCache(Classifier[] m_Classifiers,
int instanceIdx,
DataCache data,
boolean[][] inBag) |
Modifier and Type | Method and Description |
---|---|
Double |
call()
Determine predictions for a single instance (defined in "instanceIdx").
|
protected final Classifier[] m_Classifiers
protected final int instanceIdx
protected final DataCache data
protected final boolean[][] inBag
public VotesCollectorDataCache(Classifier[] m_Classifiers, int instanceIdx, DataCache data, boolean[][] inBag)
Copyright © 2015–2021 Fiji. All rights reserved.