public class PearsonMatrixCaseBase extends MatrixCaseBase
MatrixCaseBase.RatingTuple, MatrixCaseBase.SimilarTuple| Constructor and Description |
|---|
PearsonMatrixCaseBase(es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute value,
int minCorrelateItemsFactor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeSimilarities()
Computes the similarity of neighbors (each neighbor is defined by the description)
|
double |
getAverage(int id)
returns the ratings average for a given user
|
double |
getSimil(Integer id1,
Integer id2)
Returns the similarity of two neighbors.
|
List<MatrixCaseBase.SimilarTuple> |
getSimilar(Integer id)
Returns the list of similar neighbors for a given one
|
close, forgetCases, getCases, getCases, getDescription, getDescriptions, getRatingTuples, getSolution, getSolutions, init, learnCasespublic PearsonMatrixCaseBase(es.ucm.fdi.gaia.jcolibri.cbrcore.Attribute value, int minCorrelateItemsFactor)
value - is the attribute of the result part of the case that contains the ratingminCorrelateItemsFactor - factor that decreases the similarity between users
who have fewer than this number of co-rated itemsprotected void computeSimilarities()
MatrixCaseBasecomputeSimilarities in class MatrixCaseBasepublic List<MatrixCaseBase.SimilarTuple> getSimilar(Integer id)
MatrixCaseBasegetSimilar in class MatrixCaseBaseid - of the neighborpublic double getSimil(Integer id1, Integer id2)
MatrixCaseBasegetSimil in class MatrixCaseBaseid1 - of the first neighborid2 - of the second neighbor.public double getAverage(int id)
id - is the userCopyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.