InputType
- The input type to categorize, which is passed to the kernel
function.public static class Forgetron.Result<InputType> extends DefaultKernelBinaryCategorizer<InputType>
Forgetron
, which extends
the DefaultKernelBinaryCategorizer
with some additional state
information needed in the update step.Modifier and Type | Field and Description |
---|---|
protected long |
errorCount
The number of errors that the categorizer has made in the learning
step.
|
protected double |
q
The value of Q for the algorithm.
|
bias, DEFAULT_BIAS, examples, kernel
BINARY_CATEGORIES
Constructor and Description |
---|
Result()
Creates a new
Result with a null kernel. |
Result(Kernel<? super InputType> kernel)
Creates a new
Result with the given kernel. |
Modifier and Type | Method and Description |
---|---|
long |
getErrorCount()
Gets the error count.
|
protected double |
getQ()
Gets the value Q updated by the algorithm.
|
protected void |
setErrorCount(long errorCount)
Sets the error count.
|
protected void |
setQ(double q)
Gets the value Q updated by the algorithm.
|
add, get, getExampleCount, remove
evaluateAsDouble, getBias, getExamples, getKernel, getThreshold, setBias, setExamples, setKernel, setThreshold
evaluate, evaluateWithDiscriminant
getCategories
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluateWithDiscriminant
getCategories
clone
protected long errorCount
protected double q
public long getErrorCount()
protected void setErrorCount(long errorCount)
errorCount
- The error count.protected double getQ()
protected void setQ(double q)
q
- The Q value.