|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectweka.attributeSelection.ASEvaluation
mulan.dimensionalityReduction.BinaryRelevanceAttributeEvaluator
public class BinaryRelevanceAttributeEvaluator
| Nested Class Summary | |
|---|---|
class |
BinaryRelevanceAttributeEvaluator.Rank
a wrapper class for score-based attribute ranking |
| Constructor Summary | |
|---|---|
BinaryRelevanceAttributeEvaluator(ASEvaluation ase,
MultiLabelInstances mlData,
String combapp,
String norm,
String mode)
|
|
| Method Summary | |
|---|---|
double |
average(double[][] scoreList,
int index)
average score combination approach |
void |
buildEvaluator(Instances data)
Not supported |
static double[] |
dl(double[] array)
divide by length (dl) normalization |
static double[] |
dm(double[] array)
divide by maximum (dm) normalization |
double |
evaluateAttribute(int attribute)
Evaluates an attribute |
double |
highest(double[][] scoreList,
int index)
highest score combination approach |
double |
lowest(double[][] scoreList,
int index)
lowest score combination approach |
static double |
norm(double[] vector)
calculates the norm of a vector |
static void |
normalize(double[] array)
normalizes an array (in the range of [0,1]) |
int[] |
order(int[] ranking)
orders the ranking scores according to their attributes' original indices |
int[] |
rankAsc(double[] scores)
returns a ranking of attributes (where each attribute is represented by its index) |
int[] |
rankDesc(double[] scores)
returns a ranking of attributes (where each attribute is represented by its index) |
| Methods inherited from class weka.attributeSelection.ASEvaluation |
|---|
forName, getCapabilities, getRevision, makeCopies, postProcess, runEvaluator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryRelevanceAttributeEvaluator(ASEvaluation ase,
MultiLabelInstances mlData,
String combapp,
String norm,
String mode)
ase - mlData - combapp - combination approach mode ("max", "avg", "min")norm - normalization mode ("dl", "dm", "none")mode - scoring mode ("eval", "rank")| Method Detail |
|---|
public int[] rankAsc(double[] scores)
scores - the attributes' scorelist
public int[] rankDesc(double[] scores)
scores - the attributes' scorelist
public int[] order(int[] ranking)
ranking - a rank table
public double highest(double[][] scoreList,
int index)
scoreList - all attributes' score listsindex - the index of a specific attribute's score
public double lowest(double[][] scoreList,
int index)
scoreList - all attributes' score listsindex - the index of a specific attribute's score
public double average(double[][] scoreList,
int index)
scoreList - all attributes' score listsindex - the index of a specific attribute's score
public static double norm(double[] vector)
vector - a numeric array (as a vector)
public static void normalize(double[] array)
array - a numeric arraypublic static double[] dl(double[] array)
array - a numeric array
public static double[] dm(double[] array)
array - a numeric array
public double evaluateAttribute(int attribute)
throws Exception
evaluateAttribute in interface AttributeEvaluatorattribute - the attribute index
Exception
public void buildEvaluator(Instances data)
throws Exception
buildEvaluator in class ASEvaluationdata -
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||