Interface IOnlineLearner<T,I,D extends IDataset<I>>
-
- Type Parameters:
T- The type of the target that thisIOnlineLearnerpredicts.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 Superinterfaces:
IBatchLearner<T,I,D>,IPredictiveModel<T,I,D>
- All Known Implementing Classes:
AOnlineLearner,PLNetDyadRanker
public interface IOnlineLearner<T,I,D extends IDataset<I>> extends IBatchLearner<T,I,D>
TheIOnlineLearnermodels a learning algorithm which works in an online fashion, i.e. takes either a singleIInstanceor aSetthereof as training input.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidupdate(I instance)Updates thisIOnlineLearnerbased on the givenIInstance.voidupdate(java.util.Set<I> instances)-
Methods inherited from interface ai.libs.jaicore.ml.core.predictivemodel.IBatchLearner
train
-
Methods inherited from interface ai.libs.jaicore.ml.core.predictivemodel.IPredictiveModel
getConfiguration, predict, predict, setConfiguration
-
-
-
-
Method Detail
-
update
void update(java.util.Set<I> instances) throws TrainingException
- Parameters:
instances- TheSetofIInstances the update should be based on.- Throws:
TrainingException- If something fails during the update process.
-
update
void update(I instance) throws TrainingException
Updates thisIOnlineLearnerbased on the givenIInstance.- Parameters:
instance- TheIInstancethe update should be based on.- Throws:
TrainingException- If something fails during the update process.
-
-