|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.generator.ClassificationFunction
edu.udo.cs.yale.operator.generator.MultiClassificationFunction
public class MultiClassificationFunction
The label is the first class, if the sum of all arguments modulo 2 is 0, it is the second class if the sum modulo 3 is 0 and the third class if the sum modulo 5 is 0. In all other cases the label is the fourth class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.udo.cs.yale.operator.generator.TargetFunction |
|---|
TargetFunction.FunctionException |
| Field Summary | |
|---|---|
(package private) Attribute |
nominalLabel
|
| Fields inherited from class edu.udo.cs.yale.operator.generator.ClassificationFunction |
|---|
label, lower, upper |
| Constructor Summary | |
|---|---|
MultiClassificationFunction()
|
|
| Method Summary | |
|---|---|
double |
calculate(double[] args)
Calculates the target function on arguments. |
Attribute |
getLabel()
Returns the label attribute. |
| Methods inherited from class edu.udo.cs.yale.operator.generator.ClassificationFunction |
|---|
createArguments, init, setLowerArgumentBound, setTotalNumberOfAttributes, setTotalNumberOfExamples, setUpperArgumentBound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Attribute nominalLabel
| Constructor Detail |
|---|
public MultiClassificationFunction()
| Method Detail |
|---|
public Attribute getLabel()
TargetFunction
getLabel in interface TargetFunctiongetLabel in class ClassificationFunction
public double calculate(double[] args)
throws TargetFunction.FunctionException
TargetFunction
TargetFunction.FunctionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||