org.mymedialite
Interface IIterativeModel

All Known Implementing Classes:
BiasedMatrixFactorization, BPRLinear, BPRMF, CoClustering, FactorWiseMatrixFactorization, LogisticRegressionMatrixFactorization, MatrixFactorization, MF, SocialMF, SoftMarginRankingMF, TimeAwareBaseline, TimeAwareBaselineWithFrequencies, UserItemBaseline, WeightedBPRMF, WRMF

public interface IIterativeModel

Interface representing iteratively trained models.


Method Summary
 double computeLoss()
          Compute the current loss of the model
 int getNumIter()
          Get the number of iterations to run the training
 void iterate()
          Run one iteration (= pass over the training data)
 void setNumIter(int numIter)
          Set the number of iterations to run the training
 

Method Detail

setNumIter

void setNumIter(int numIter)
Set the number of iterations to run the training


getNumIter

int getNumIter()
Get the number of iterations to run the training


iterate

void iterate()
Run one iteration (= pass over the training data)


computeLoss

double computeLoss()
Compute the current loss of the model

Returns:
the current loss; -1 if not implemented