Configurable
, java.io.Serializable
, MOAObject
, OptionHandler
, RatingPredictor
public class BRISMFPredictor extends AbstractOptionHandler implements RatingPredictor
Parameters:
Modifier and Type | Field | Description |
---|---|---|
ClassOption |
dataOption |
|
IntOption |
featuresOption |
|
IntOption |
iterationsOption |
|
FloatOption |
lRateOption |
|
FloatOption |
rFactorOption |
|
protected BRISMFPredictor |
rp |
config
Constructor | Description |
---|---|
BRISMFPredictor() |
Modifier and Type | Method | Description |
---|---|---|
RecommenderData |
getData() |
|
void |
getDescription(java.lang.StringBuilder sb,
int indent) |
Returns a string representation of this object.
|
double |
predictRating(int userID,
int itemID) |
|
double |
predictRating(java.lang.Integer user,
java.lang.Integer item) |
|
java.util.List<java.lang.Double> |
predictRatings(int userID,
java.util.List<java.lang.Integer> itemIDS) |
|
protected void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository) |
This method describes the implementation of how to prepare this object for use.
|
void |
train() |
copy, measureByteSize, measureByteSize, toString
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
measureByteSize
protected BRISMFPredictor rp
public IntOption featuresOption
public FloatOption lRateOption
public FloatOption rFactorOption
public IntOption iterationsOption
public ClassOption dataOption
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to usepublic void getDescription(java.lang.StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic double predictRating(java.lang.Integer user, java.lang.Integer item)
public RecommenderData getData()
getData
in interface RatingPredictor
public double predictRating(int userID, int itemID)
predictRating
in interface RatingPredictor
public java.util.List<java.lang.Double> predictRatings(int userID, java.util.List<java.lang.Integer> itemIDS)
predictRatings
in interface RatingPredictor
public void train()
train
in interface RatingPredictor
Copyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.