public class OVACodeMatrix extends AbstractCodeMatrix implements Serializable
One-versus-all Code Matrix
For a classification problem with n categories, there are total n binary classifiers. For the k-th binary classifier, examples of category k will be used as postive examples and all other examples used as negative examples.
Copyright: Copyright (c) 2005
Company: IST, Drexel University
classifierNum, classNum| Constructor and Description |
|---|
OVACodeMatrix() |
OVACodeMatrix(int classNum) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode(int classIndex,
int classifierIndex)
Gets the code value for specified category and binary classifier
|
void |
setClassNum(int classNum)
Sets the number of categories
|
getClassifierNum, getClassNumpublic OVACodeMatrix()
public OVACodeMatrix(int classNum)
public int getCode(int classIndex,
int classifierIndex)
CodeMatrixgetCode in interface CodeMatrixclassIndex - the index of the categoryclassifierIndex - the index of the binary classifierpublic void setClassNum(int classNum)
CodeMatrixsetClassNum in interface CodeMatrixclassNum - the number of categoriesCopyright © 2018 JULIE Lab, Germany. All rights reserved.