public class AllPairCodeMatrix extends AbstractCodeMatrix implements Serializable
Pairwise Code Matrix
Any two categories combine as a binary classifer in which one category is trained as postive examples and the other negative examples. For a classification problem with n categories, there are total n(n-1)/2 binary classifiers.
Copyright: Copyright (c) 2005
Company: IST, Drexel University
classifierNum, classNum| Constructor and Description |
|---|
AllPairCodeMatrix() |
AllPairCodeMatrix(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 AllPairCodeMatrix()
public AllPairCodeMatrix(int classNum)
public void setClassNum(int classNum)
CodeMatrixsetClassNum in interface CodeMatrixclassNum - the number of categoriespublic int getCode(int classIndex,
int classifierIndex)
CodeMatrixgetCode in interface CodeMatrixclassIndex - the index of the categoryclassifierIndex - the index of the binary classifierCopyright © 2018 JULIE Lab, Germany. All rights reserved.