T - The type of the target that this IPredictiveModel
predicts.I - The type of the instances stored in the data set specified by the generic parameter D - The type of the data set used to learn from and predict batches.public interface IPredictiveModel<T,I,D extends IDataset<I>>
IPredictiveModel corresponds to a model which can be used to make
predictions based on given IInstancees.| Modifier and Type | Method and Description |
|---|---|
IPredictiveModelConfiguration |
getConfiguration()
Returns the
IPredictiveModelConfiguration of this model. |
java.util.List<T> |
predict(D dataset)
Performs multiple predictions based on the
IInstances contained in
the given AILabeledAttributeArrayDatasets and returns the result. |
T |
predict(I instance)
Performs a prediction based on the given
IInstance and returns the
result. |
void |
setConfiguration(IPredictiveModelConfiguration configuration)
Sets the
IPredictiveModelConfiguration of this model to the given
one. |
T predict(I instance) throws PredictionException
IInstance and returns the
result.instance - The IInstance for which a prediction should be made.PredictionException - If something fails during the prediction process.java.util.List<T> predict(D dataset) throws PredictionException
IInstances contained in
the given AILabeledAttributeArrayDatasets and returns the result.dataset - The AILabeledAttributeArrayDataset for which predictions should be made.PredictionException - If something fails during the prediction process.IPredictiveModelConfiguration getConfiguration()
IPredictiveModelConfiguration of this model.IPredictiveModelConfiguration of this model.void setConfiguration(IPredictiveModelConfiguration configuration) throws ConfigurationException
IPredictiveModelConfiguration of this model to the given
one.ConfigurationException - If something fails during the configuration process.