model.matrixFactorization.FactorizationModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cf4j-recsys Show documentation
Show all versions of cf4j-recsys Show documentation
A Java's Collaborative Filtering library to carry out experiments in research of Collaborative Filtering based Recommender Systems. The library has been designed from researchers to researchers.
The newest version!
package cf4j.model.matrixFactorization;
/**
* Interface for matrix factorization model based collaborative filtering. It has two
* methods:
*
* - train: computes factorization process.
* - getPrediction: get rating prediction of an user to an item.
*
*
* @author Fernando Ortega
*
*/
public interface FactorizationModel {
/**
* Runs matrix factorization process. Parallelization must be implemented
* inside this method.
*/
public void train ();
/**
* Get rating prediction of an user to an item
* @param userIndex User index
* @param itemIndex Item index
* @return Rating prediction
*/
public double getPrediction (int userIndex, int itemIndex);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy