public abstract class CCUtils extends Object
| Constructor and Description |
|---|
CCUtils() |
| Modifier and Type | Method and Description |
|---|---|
static CC |
buildCC(int[] chain,
weka.core.Instances D,
weka.classifiers.Classifier g)
BuildCC - Given a base classifier 'g', build a new CC classifier on data D, given chain order 'chain'.
|
static weka.core.Instances |
linkTransform(weka.core.Instances D,
int j,
int[] exl)
LinkTransform - prepare 'D' for training at a node 'j' of the chain, by excluding 'exl'.
|
static weka.core.Instance |
linkTransformation(weka.core.Instance x,
int[] excl,
weka.core.Instances _D)
LinkTransform - prepare 'x' for testing at a node 'j' of the chain, by excluding 'exl'.
|
static void |
setPath(weka.core.Instance xy,
double[] path)
SetPath - set 'path[]' into the first L attributes of Instance 'xy'.
|
public static CC buildCC(int[] chain, weka.core.Instances D, weka.classifiers.Classifier g) throws Exception
Exceptionpublic static void setPath(weka.core.Instance xy,
double[] path)
xy - an Example (x,y)path - a label vectorpublic static weka.core.Instances linkTransform(weka.core.Instances D,
int j,
int[] exl)
D - datasetj - index of the label of this nodeexl - indices of labels which are NOT parents of jpublic static weka.core.Instance linkTransformation(weka.core.Instance x,
int[] excl,
weka.core.Instances _D)
x - instanceexcl - indices of labels which are NOT parents of j_D - the dataset template to useCopyright © 2017. All Rights Reserved.