|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Classifier
Classifier returns a prediction based on training and testing image sets.
SavableClassifier| Method Summary | |
|---|---|
void |
classify(float[][] trainingpatterns,
int[] trainingtargets,
float[][] testingpatterns,
int[] predictions,
double[] prob)
Classifies the patterns using the input parameters. |
boolean |
doesSupportProbability()
Returns whether or not the algorithm uses probability estimations. |
void |
setParameters(java.util.HashMap<java.lang.String,java.lang.String> para)
Sets algorithm parameters from para |
| Method Detail |
|---|
void setParameters(java.util.HashMap<java.lang.String,java.lang.String> para)
para - Each element of para holds a parameter name
for its key and a its value is that of the parameter.
The parameters should be the same as those in the
algorithms.xml file.
void classify(float[][] trainingpatterns,
int[] trainingtargets,
float[][] testingpatterns,
int[] predictions,
double[] prob)
throws java.lang.Exception
trainingpatterns - Pattern data to train the algorithmtrainingtargets - Targets for the training patterntestingpatterns - Pattern data to be classifiedpredictions - Storage for the resulting predictionprob - Storage for probability result
java.lang.Exception - Optional, generic exception to be thrownboolean doesSupportProbability()
True if the algorithm uses probability
estimations, False if not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||