public interface MLROIFinder extends ROIFinder
Modifier and Type | Method and Description |
---|---|
double |
negativeClass()
The numeric label assigned to negative samples i.e.
|
double |
positiveClass()
The numeric label assigned to positive samples i.e.
|
double |
predict(Dataset data)
Returns the predicted class/value of the sample
|
double |
predict(double[] data)
Returns the predicted class/value of the sample
|
void |
train(double[][] X,
int[] y)
Trains the Region Of Interest finder on new data
|
getObjectMap, getSerializationVersion, getVersion, init, initCurrentVersion, initPreviousVersion, initUnknownVersion, load, read, save, write
void train(double[][] X, int[] y) throws java.lang.Exception
X
- N examples with M features per exampley
- N labels for the N examples in Xjava.lang.Exception
- if an error occursdouble predict(double[] data) throws java.lang.Exception
data
- sample to predictjava.lang.Exception
- if an error occursdouble predict(Dataset data) throws java.lang.Exception
data
- sample to predictjava.lang.Exception
- if an error occursdouble positiveClass()
double negativeClass()