Package | Description |
---|---|
net.librec.math.structure | |
net.librec.recommender | |
net.librec.recommender.cf.rating | |
net.librec.recommender.ext | |
net.librec.similarity |
Modifier and Type | Method and Description |
---|---|
SparseVector |
SparseMatrix.column(int col)
get a col sparse vector of a matrix
|
SparseVector |
SparseTensor.fiber(int dim,
int... keys)
A fiber is defined by fixing every index but one.
|
SparseVector |
SymmMatrix.row(int row)
Retrieve a complete row of similar items
|
SparseVector |
SparseMatrix.row(int row)
get a row sparse vector of a matrix
|
SparseVector |
SparseMatrix.row(int row,
int except)
get a row sparse vector of a matrix
|
Modifier and Type | Method and Description |
---|---|
com.google.common.cache.LoadingCache<java.lang.Integer,SparseVector> |
SparseMatrix.columnCache(java.lang.String cacheSpec)
create a column cache of a matrix
|
com.google.common.cache.LoadingCache<java.lang.Integer,SparseVector> |
SparseMatrix.rowCache(java.lang.String cacheSpec)
create a row cache of a matrix in {row, row-specific vector}
|
Modifier and Type | Method and Description |
---|---|
double |
SparseVector.inner(SparseVector vec)
Return inner product with a given sparse vector
|
double |
DenseVector.inner(SparseVector vec)
Do vector operation:
a^t * b |
DenseVector |
DenseMatrix.mult(SparseVector vec) |
Constructor and Description |
---|
SparseVector(SparseVector sv)
Construct a sparse vector by deeply copying another vector
|
Modifier and Type | Method and Description |
---|---|
protected SparseVector |
FactorizationMachineRecommender.tenserKeysToFeatureVector(int[] tenserKeys)
Transform the keys of a tensor entry into a sparse vector.
|
Modifier and Type | Method and Description |
---|---|
protected double |
FactorizationMachineRecommender.predict(int userId,
int itemId,
SparseVector x)
Predict the rating given a sparse appender vector.
|
protected double |
FactorizationMachineRecommender.predict(int userId,
int itemId,
SparseVector x,
boolean bound)
Predict the rating given a sparse appender vector.
|
Modifier and Type | Method and Description |
---|---|
protected DenseVector |
BPMFRecommender.updateParameters(DenseMatrix factors,
SparseVector ratings,
BPMFRecommender.HyperParameters hyperParameters) |
Modifier and Type | Field and Description |
---|---|
protected com.google.common.cache.LoadingCache<java.lang.Integer,SparseVector> |
AssociationRuleRecommender.userCache
user-vector cache, item-vector cache
|
Modifier and Type | Method and Description |
---|---|
double |
KRCCSimilarity.getCorrelation(SparseVector thisVector,
SparseVector thatVector)
Find the common rated items by this user and that user, or the common
users have rated this item or that item.
|
double |
JaccardSimilarity.getCorrelation(SparseVector thisVector,
SparseVector thatVector)
Find the common rated items by this user and that user, or the common
users have rated this item or that item.
|
double |
BinaryCosineSimilarity.getCorrelation(SparseVector thisVector,
SparseVector thatVector)
Get the binary cosine similarity of two sparse vectors.
|
double |
AbstractRecommenderSimilarity.getCorrelation(SparseVector thisVector,
SparseVector thatVector)
Find the common rated items by this user and that user, or the common
users have rated this item or that item.
|
Copyright © 2017. All Rights Reserved.