Interface IPredictiveModel<T,I,D extends IDataset<I>>
-
- Type Parameters:
T- The type of the target that thisIPredictiveModelpredicts.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.
- All Known Subinterfaces:
IBatchLearner<T,I,D>,ICertaintyProvider<T,I,D>,IDyadRanker,IOnlineLearner<T,I,D>,IPLDyadRanker
- All Known Implementing Classes:
ABatchLearner,AOnlineLearner,APredictiveModel,FeatureTransformPLDyadRanker,PLNetDyadRanker,TSClassifier
public interface IPredictiveModel<T,I,D extends IDataset<I>>TheIPredictiveModelcorresponds to a model which can be used to make predictions based on givenIInstancees.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IPredictiveModelConfigurationgetConfiguration()Returns theIPredictiveModelConfigurationof this model.java.util.List<T>predict(D dataset)Performs multiple predictions based on theIInstances contained in the givenAILabeledAttributeArrayDatasets and returns the result.Tpredict(I instance)Performs a prediction based on the givenIInstanceand returns the result.voidsetConfiguration(IPredictiveModelConfiguration configuration)Sets theIPredictiveModelConfigurationof this model to the given one.
-
-
-
Method Detail
-
predict
T predict(I instance) throws PredictionException
Performs a prediction based on the givenIInstanceand returns the result.- Parameters:
instance- TheIInstancefor which a prediction should be made.- Returns:
- The result of the prediction.
- Throws:
PredictionException- If something fails during the prediction process.
-
predict
java.util.List<T> predict(D dataset) throws PredictionException
Performs multiple predictions based on theIInstances contained in the givenAILabeledAttributeArrayDatasets and returns the result.- Parameters:
dataset- TheAILabeledAttributeArrayDatasetfor which predictions should be made.- Returns:
- The result of the predictions.
- Throws:
PredictionException- If something fails during the prediction process.
-
getConfiguration
IPredictiveModelConfiguration getConfiguration()
Returns theIPredictiveModelConfigurationof this model.- Returns:
- The
IPredictiveModelConfigurationof this model.
-
setConfiguration
void setConfiguration(IPredictiveModelConfiguration configuration) throws ConfigurationException
Sets theIPredictiveModelConfigurationof this model to the given one.- Throws:
ConfigurationException- If something fails during the configuration process.
-
-