|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmulan.classifier.neural.ThresholdFunction
public class ThresholdFunction
Implementation of a threshold function.
| Constructor Summary | |
|---|---|
ThresholdFunction(double[][] idealLabels,
double[][] modelOutLabels)
Creates a new instance of ThresholdFunction and
builds the function based on input parameters. |
|
| Method Summary | |
|---|---|
void |
build(double[][] idealLabels,
double[][] modelOutLabels)
Build a threshold function for based on input data. |
double |
computeThreshold(double[] labelsConfidences)
Computes a threshold value, based on learned parameters, for given labels confidences. |
protected double[] |
getFunctionParameters()
Returns parameters learned by the threshold function in last build. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThresholdFunction(double[][] idealLabels,
double[][] modelOutLabels)
ThresholdFunction and
builds the function based on input parameters.
idealLabels - the ideal output for each input patterns, which a model should outputmodelOutLabels - the real output of a model for each input pattern
IllegalArgumentException - if dimensions of input arrays does not matchbuild(double[][], double[][])| Method Detail |
|---|
public double computeThreshold(double[] labelsConfidences)
labelsConfidences - the labels confidences
IllegalArgumentException - if the dimension of labels confidences does not match
the dimension of learned parameters of threshold function.
public void build(double[][] idealLabels,
double[][] modelOutLabels)
idealLabels - the ideal output for each input patterns, which a model should output.
First index is expected to be number of examples and second is the label index.modelOutLabels - the real output of a model for each input pattern.
First index is expected to be number of examples and second is the label index.
IllegalArgumentException - if dimensions of input arrays does not matchprotected double[] getFunctionParameters()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||