public abstract class F
extends java.lang.Object
Constructor and Description |
---|
F() |
Modifier and Type | Method and Description |
---|---|
static weka.core.Instances |
keepLabels(weka.core.Instances D,
int L,
int[] j)
Remove Indices - Remove some labels (assume they are the first L attributes) from D.
|
static weka.core.Instance |
meka2mulan(weka.core.Instance x,
int L)
meka2mulan - Move L label attributes from the beginning to end of attribute space of an Instance.
|
static weka.core.Instances |
meka2mulan(weka.core.Instances D,
int L)
meka2mulan - Move L label attributes from the beginning to end of attribute space of an Instances.
|
static weka.core.Instances |
mulan2meka(weka.core.Instances D,
int L)
mulan2meka - Move label attributes from the End to the Beginning of attribute space (MULAN format to MEKA format).
|
static weka.core.Instances |
remove(weka.core.Instances D,
int[] indices,
boolean inv)
Remove Indices - Remove attribute indices 'indices' from 'D'.
|
static weka.core.Instances |
removeLabels(weka.core.Instances D,
int L)
Remove Indices - Remove ALL labels (assume they are the first L attributes) from D.
|
static void |
reorderLabels(weka.core.Instances D,
int[] s)
ReorderLabels - swap values of y[1] to y[L] according to s[].
|
public static final weka.core.Instances meka2mulan(weka.core.Instances D, int L)
public static final weka.core.Instance meka2mulan(weka.core.Instance x, int L)
public static final weka.core.Instances mulan2meka(weka.core.Instances D, int L)
public static void reorderLabels(weka.core.Instances D, int[] s) throws java.lang.Exception
s
- new indices order (supposing that it contains the first s.length indices)java.lang.Exception
public static weka.core.Instances remove(weka.core.Instances D, int[] indices, boolean inv) throws java.lang.Exception
D
- Datasetindices
- attribute indices to remove/keepinv
- if true, then keep 'indices'java.lang.Exception
public static weka.core.Instances removeLabels(weka.core.Instances D, int L) throws java.lang.Exception
D
- DatasetL
- number of labelsjava.lang.Exception
public static weka.core.Instances keepLabels(weka.core.Instances D, int L, int[] j) throws java.lang.Exception
D
- DatasetL
- number of labelsj
- indices of labels to keepjava.lang.Exception