TARGET - The type of the target that this IPredictiveModel predicts.public interface IPredictiveModel<TARGET>
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<TARGET> |
predict(IDataset dataset)
|
TARGET |
predict(IInstance 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. |
TARGET predict(IInstance 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<TARGET> predict(IDataset dataset) throws PredictionException
IInstances contained in the given IDatasets and returns the result.dataset - The IDataset 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.